OnPlayerDeath problem.
#5

That's because if you just die without another player being responsible, killerid = INVALID_PLAYER_ID, and you can't access PlayerInfo[INVALID_PLAYER_ID][pKills]

Just use this:

pawn Код:
if(killerid != INVALID_PLAYER_ID)  PlayerInfo[killerid][pKills]++;
Reply


Messages In This Thread
OnPlayerDeath problem. - by Matz - 28.01.2012, 12:22
Re: OnPlayerDeath problem. - by SpiderWalk - 28.01.2012, 12:27
Re: OnPlayerDeath problem. - by MP2 - 28.01.2012, 12:32
Re: OnPlayerDeath problem. - by Matz - 28.01.2012, 15:30
Re: OnPlayerDeath problem. - by Rimeau - 28.01.2012, 16:11
Re: OnPlayerDeath problem. - by Matz - 28.01.2012, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)