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 / need help with text

Author
Message
doogle 94
15
Years of Service
User Offline
Joined: 16th Jan 2009
Location:
Posted: 16th Jan 2009 20:38
Whenever i run this code,

the game runs fine, except for this part, it just acts as if the "if (on == 1)" isn't there

i use this void during the LoopGDK

does anyone know how to get the text to change according to if the key is pressed?

p.s. i'm still relatively new to this so i'm sorry if i wasted your time
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 16th Jan 2009 22:56
Quote: " if (on == 1);"


You're telling it to do nothing. You need to remove the semi-colon at the end of the test in order to let the compiler know that it controls the block following it.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
doogle 94
15
Years of Service
User Offline
Joined: 16th Jan 2009
Location:
Posted: 18th Jan 2009 16:10
oh yeah

i managed to get it to work using booleens instead, but thanks anyway

Login to post a reply

Server time is: 2024-11-25 11:55:19
Your offset time is: 2024-11-25 11:55:19