20.02.2011, 18:57
Quote:
Bad!
Use: pawn Код:
Not neccessarily. GetMaxPlayers() (if used correctly) will save process time because it will generally be a smaller value than MAX_PLAYERS. Most people do not update their a_samp.inc to their correct max players value that their server runs on, so therefore they are running more loops or creating more array cells than they will ever use. So - update your a_samp.inc to your correct player count, and this will solve your problems. ~Cueball~ |
Because it gets called repeatedly, so it's slow.
BEST way:
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (yourslots)