crash[detect]
#1

edited.. fixed.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)