SA-MP Forums Archive
Question info: MAX_PLAYERS - 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: Question info: MAX_PLAYERS (/showthread.php?tid=357368)



Question info: MAX_PLAYERS - Speed++ - 06.07.2012

in some variables, etc, i have MAX_PLAYERS, and in the gamemode i have definied this,

PHP код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (10) // My slots 
is necessary ? ...


Re: Question info: MAX_PLAYERS - DBan - 06.07.2012

It is not necessary but optimizes your script a bit.


Re: Question info: MAX_PLAYERS - ReneG - 06.07.2012

With that code, whenever MAX_PLAYERS is used in your script, it will use 10, that define was used to change the default max players (500) to whatever number to save memory.


Re: Question info: MAX_PLAYERS - Speed++ - 06.07.2012

Ok, thanks.