SA-MP Forums Archive
For what is the number after #define NAME ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: For what is the number after #define NAME ? (/showthread.php?tid=459501)



For what is the number after #define NAME ? - bustern - 23.08.2013

So for what is that number ?Example:
#define dialog1 3


Re: For what is the number after #define NAME ? - Konstantinos - 23.08.2013

That means that either you type 3 or dialog1 will be the same thing (an integer).


Re: For what is the number after #define NAME ? - Dragonsaurus - 23.08.2013

Dialogid is 3, and you use #define to somehow rename it.
If you do:
pawn Код:
if(dialogid == 3)
It is the same as doing:
pawn Код:
if(dialogid == dialog1)



Re: For what is the number after #define NAME ? - bustern - 23.08.2013

Thx you guys !