OnPlayerDeath Not getting called.
#10

Quote:
Originally Posted by Black Wolf
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[killerid][Kills]++;
    return 1;
}
Basically, when you suicide, you're crashing the callback right away with a run time error "index out of bounds", as killerid value equals INVALID_PLAYER_ID, which value is 0xFFFF (65535 in decimal system): quite FAR from playerid 499 isn't it?

Do the check "if (killerid!=INVALID_PLAYER_ID)" before doing ANYTHING with killerid, really.
Reply


Messages In This Thread
OnPlayerDeath Not getting called. - by Black Wolf - 15.01.2013, 16:34
Re : OnPlayerDeath Not getting called. - by Vukilore - 15.01.2013, 16:45
Re: Re : OnPlayerDeath Not getting called. - by Black Wolf - 15.01.2013, 16:49
Re: OnPlayerDeath Not getting called. - by [KHK]Khalid - 15.01.2013, 18:03
Re: Re : OnPlayerDeath Not getting called. - by leong124 - 15.01.2013, 18:59
Re: OnPlayerDeath Not getting called. - by Black Wolf - 16.01.2013, 03:37
Re: OnPlayerDeath Not getting called. - by TopFuel - 16.01.2013, 03:40
Re: OnPlayerDeath Not getting called. - by Black Wolf - 16.01.2013, 04:01
Re: OnPlayerDeath Not getting called. - by Jochemd - 16.01.2013, 05:10
Re : Re: OnPlayerDeath Not getting called. - by decondelite - 16.01.2013, 07:47

Forum Jump:


Users browsing this thread: 1 Guest(s)