16.08.2012, 01:55
First, you should understand that
create a macro, meaning "useless" will be replaced by "exemple" everywhere in your script when you'll compile it (in fact, it happens a bit before the compile itself).
Second, GetMaxPlayers() will read the number of slots from the server config (server.cfg) thought 500 is a constant number.
So, you can't use GetMaxPlayer() to define an array size because it should be a constant number.
So, best you have to do is using
but using foreach() for your loops.
PS: Sorry for my bad english :-'
pawn Код:
#define useless exemple
Second, GetMaxPlayers() will read the number of slots from the server config (server.cfg) thought 500 is a constant number.
So, you can't use GetMaxPlayer() to define an array size because it should be a constant number.
So, best you have to do is using
pawn Код:
#define MAX_PLAYERS 500
PS: Sorry for my bad english :-'