14.12.2010, 19:40
Hello guys,i got a problem with my script.The server crashes when i shoot the player the 3th time...When he should die the server crash.Ill put here my OnPlayerDeath:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
ECash[playerid] += 2;
SendClientMessage(killerid, "a message...");
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
ECash[playerid] -= 1;
SendClientMessage(playerid, "another message...");
return 1;
}
Thanks.
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
ECash[playerid] += 2;
SendClientMessage(killerid, "a message...");
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
ECash[playerid] -= 1;
SendClientMessage(playerid, "another message...");
return 1;
}
Thanks.