28.01.2012, 16:11
That's because if you just die without another player being responsible, killerid = INVALID_PLAYER_ID, and you can't access PlayerInfo[INVALID_PLAYER_ID][pKills]
Just use this:
Just use this:
pawn Код:
if(killerid != INVALID_PLAYER_ID) PlayerInfo[killerid][pKills]++;