Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / if else not working

Author
Message
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 8th Feb 2008 04:48
when i use this code i get error illegal else without matching if.
Woozl
16
Years of Service
User Offline
Joined: 21st Dec 2007
Location:
Posted: 8th Feb 2008 04:56
I think your problem is the ; at the end of this line if (dbGetFTPFailure() == 1);
kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 8th Feb 2008 05:00
Quote: "if (dbGetFTPFailure() == 1);"


Remove the ; as it is telling the compiler: "ok, this instructions finishes here", instead of going through the {


Thiago
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 8th Feb 2008 05:10 Edited at: 8th Feb 2008 05:11
Also, comparing dbGetFTPFailure with 1 is unnecessary, as the condition is considered true if any of the bits of the expression are set.



MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 8th Feb 2008 05:23
ok thanks

Login to post a reply

Server time is: 2024-11-20 01:31:41
Your offset time is: 2024-11-20 01:31:41