You need to use the_post_thumbnail
instead of the_thumbnail
within the loop. This is how it should be formatted:
<?php if(have_posts()){
while(have_posts()){
the_post();
if(has_post_thumbnail()){
the_post_thumbnail();
}
}
}?>