Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: int question
View Single Post
Old 02-10-2010, 07:59 AM   #6 (permalink)
Mr Jack
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

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
Mr Jack is offline   Reply With Quote
 

» Advertisements
» Online Users: 536
13 members and 523 guests
Domele, ganesh.sics, iconomania, ilmman, manop_cs, Matl43Owa, mistergreen2011, Newbie123, Objective Zero, oztemel, PavelSea, pinky, proindigo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,448
Threads: 94,031
Posts: 402,607
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Matl43Owa
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:19 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.