Whats the difference? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats the difference? (
/showthread.php?tid=199907)
Whats the difference? -
admantis - 16.12.2010
Whats the difference of:
and
I was thinking on this last night before going to sleep :P
regards
Re: Whats the difference? -
Benjo - 16.12.2010
When you #define something, the intent is that it will be a static amount and will not change at all throughout the whole script.
Declaring a new variable is more dynamic and can be changed and reused for different values.
Re: Whats the difference? -
admantis - 16.12.2010
Quote:
Originally Posted by Benjo
When you #define something, the intent is that it will be a static amount and will not change at all throughout the whole script.
Declaring a new variable is more dynamic and can be changed and reused for different values.
|
I kinda understand.. sometimes I use
just as a abrevation of playerid. Thanks