19.12.2013, 14:04
No, this is isn't.
What about this:
Accessing invalid cell id's will give you big problems.
What about this:
pawn Код:
new pKills[MAX_PLAYERS]; // By default, it is pKills[500];
public OnPlayerDeath(playerid,killerid,reason)
{
// killerid may be INVALID_PLAYER_ID, it means killerid = 65535
pKills[killerid] ++;
// There is a big mistake here, pKills doesn't have 65536 cells, so we don't have a 65535 cell id.
return 1;
}