debug fix OnPlayerDeath [+rep for helper]
#2

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.
Reply


Messages In This Thread
debug fix OnPlayerDeath [+rep for helper] - by maaz - 12.03.2017, 07:57
Re: debug fix OnPlayerDeath [+rep for helper] - by Toroi - 12.03.2017, 08:05
Re: debug fix OnPlayerDeath [+rep for helper] - by maaz - 12.03.2017, 08:07
Re: debug fix OnPlayerDeath [+rep for helper] - by Toroi - 12.03.2017, 08:08
Re: debug fix OnPlayerDeath [+rep for helper] - by maaz - 12.03.2017, 08:10

Forum Jump:


Users browsing this thread: 1 Guest(s)