Crash on death.
#1

Sometimes on the server, You will just randomly crash, When you die, Her eis on player death, I will only show you the script, If you are well known on here, "dont wanna give out my script" :P

But yeah OnPlayerDeath:

pawn Код:
public OnPlayerDeath(playerid, killerid)

{
    KillTimer(GodTimer[playerid]);
    SetPlayerHealth( killerid, 0.00 );
    GivePlayerMoney(killerid, -1000);
    SendClientMessage(playerid, COLOR_BLUE, "If you'r fed up with someone killing you type /god and use /report (id) (reson)");
    return 1;

}
No errors in my script, Everything works fine.
Reply
#2

Well, it could be since OnPlayerDeath sometimes detects that someone has killed someone even though their death was not related to the killerid at all.

EDIT: Thought you meant something else, nevermind
Reply
#3

It's because you have too much objects. Try using a object streamer..or two.. Because if you just put the objects in the gamemode, it takes too much to load all of them.
Souse a object streamer.
Reply
#4

no way to get detail if killerid isnt connect...Someone think still working fine without check connect.But who know the c++(sa-mp written with c++) would do what,take an empty point,orSo check killerid if is connected or not
In anyway,this callback will be called if any player dead,not be called by scripter calling,that's why often makes awsome problem and we cannot solve..
Reply
#5

I have this crash too, kinda weird. Like the new version of SA:MP causes it.
Reply
#6

i have this one too especially in /kill can someone tell how to solve it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)