Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: NeskWriter on October 29, 2013, 05:00:55 pm
-
Hye dudes. I wanna try writing my own include but I dunno how to deal with shit like "#endif #if_defined #define #etc". I want veteran scripters to explain
-
I'm not a veteran in Pawn but I've dealt with these in C++. Those things are similar to the way you use if statements.
Let's say we have this somewhere on the top.
#define foo 1
You can then use #endif, #if_defined, etc like this
#if_defined foo
//Something here
#endif
Don't know if I used the correct syntax as the things I learned is for C++.
-
I'm not a veteran in Pawn but I've dealt with these in C++. Those things are similar to the way you use if statements.
Let's say we have this somewhere on the top.
#define foo 1
You can then use #endif, #if_defined, etc like this
#if_defined foo
//Something here
#endif
Don't know if I used the correct syntax as the things I learned is for C++.
Ty, and yeah, is it optional or no?
-
It is optional.
-
It is optional.
Thx