crash[detect]
#2

Quote:
Originally Posted by Y_Less
View Post
You are probably not checking if "killerid" is a valid player, as it won't be when someone kills themselves.
yes, it's exactly what happened, I solved it doing what you told me, thank you very much Y_Less
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);

if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
PlayerInfo[killerid][Experiencia]++;
}
PlayerInfo[playerid][Deaths]++;
PlayerInfo[playerid][Deaths]++;
...
return 1;
}
Reply


Messages In This Thread
crash[detect] - by Snoopythekill - 27.04.2014, 09:26
AW: Re: crash[detect] - by Snoopythekill - 27.04.2014, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)