27.04.2014, 09:26
edited.. fixed.
You are probably not checking if "killerid" is a valid player, as it won't be when someone kills themselves.
|
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;
}