Posts: 158
Threads: 45
Joined: Jan 2014
When player died in my server log is this.
How to fix that
My script don't have erors or warnings but this is eror i don't now why
Posts: 966
Threads: 5
Joined: Jul 2011
Reputation:
0
INVALID_PLAYER_ID is defined as 65535.
In some circumstances, OnPlayerDeath is called with the killerid parameter set to INVALID_PLAYER_ID (aka 65535).
In your code, there is an instance of accessing some array of size 500 cells (MAX_PLAYERS) at index 65535, which is past its upper index 499.
Look for something like
array[killerid]
where you have not made sure that killerid is something else than INVALID_PLAYER_ID.