You've got semicolons after your if statements, they shouldn't be there. What's happening is that each of your if statements is controlling an empty statement created by that stray semicolon rather than the compound statement in braces you want it to control.
__________________
Visit Mr Jack Games for my blog and more about my games
|