12.03.2017, 08:05
killerid returns INVALID_PLAYER_ID if the player does not exist (the player who died was not killed). INVALID_PLAYER_ID is defined as 65535.
Nowhere in your callback you check if killerid is a valid ID, so it tries to apply the functions to the ID 65535 and gives you that error.
EDIT: You're checking if it's valid but only for one function, apply the check to the rest of things that involve killerid.
Nowhere in your callback you check if killerid is a valid ID, so it tries to apply the functions to the ID 65535 and gives you that error.
EDIT: You're checking if it's valid but only for one function, apply the check to the rest of things that involve killerid.