18.02.2009, 04:51
what is [MAX_PLAYERS] and what is it used for. i dont get it. ive seen it numerous times but i personally dont use it lol, only because i have no idea whats it for
new kills[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
kills[killerid]++; // Adds one kill for killedid.
return 1;
}
Originally Posted by icey--t
i still dont get it. why even use it then. so max_players puts a playerid unique to a declaration?
|
new money;
new money[MAX_PLAYERS];
money[playerid] = GetPlayerMoney(playerid);
printf("playerid %d has $%d",playerid, money[playerid]);