SA-MP Forums Archive
about define MAX_ - 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: about define MAX_ (/showthread.php?tid=577351)



about define MAX_ - extender1987 - 10.06.2015

What is the difference if I define MAX_ with parenthesis or witout for example #define MAX_TURFS (65) and why not #define MAX_TURFS 65 ??


Re: about define MAX_ - Vince - 10.06.2015

It is only really important if you intend to calculate with the number as it rules out any unintended alterations. But even if you don't intend to calculate, it's good practice to put it between parenthesis, anyway. Couldn't hurt.

Example on the wiki: https://sampwiki.blast.hk/wiki/Keywords:...ives#.23define