Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You need to check whether killedid != INVALID_PLAYER_ID before you use it in any arrays.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Yes. If you try to set an array with [killerid] to something and it's INVALID_PLAYER_ID - it will stop the script.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Also, 'OnPlayerDeath' should have 'public' before it.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You're doing
PlayerInfo[killerid][pKills]++;
but not checking if it's valid.