Show Current Logged In Users Posts With Pagination!


I've created a query that shows a users posts:

<?php get_currentuserinfo(); query_posts(array('author'=>$current_user->ID)); ?>
(I put it in front op the loop <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>:wink:.

Combined with a pagination plugin called: wp pagenavi.

But the wp-pagenavi doesn't work because it's not connected to the query ofcourse... =(

Would someone know how to fix this?