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 / The if Command

Author
Message
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 25th Apr 2008 15:11
I know that the if command is Something like this-

if ( );{
dbMoveObject ( 2 );}

Ok now here is my program-


It is a little messy, but it is a work in progres-

So, here is the problem-- I have been working with python along with c++ nd in python there is an else command which means that if the if doesn't happen, you do this.

Also in Python there is a not command that means if something isn't like that-- do this.

My question is are there commands like that in c++? I tried them- they didn't work......
Deagle
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Finland
Posted: 25th Apr 2008 15:30 Edited at: 25th Apr 2008 15:30


btw, you have this:

You could just do it like:


and you should not have ; after if's.

Deagle aka D-Eagle
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 25th Apr 2008 15:31
ok, that makes sense now...... thanks

Login to post a reply

Server time is: 2024-11-20 09:12:30
Your offset time is: 2024-11-20 09:12:30