Server crashing problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server crashing problem (
/showthread.php?tid=105650)
Server crashing problem -
Striker_Moe - 30.10.2009
Hi there.
Iґve recently added this here at OnPlayerDeath:
if(reason == 255)
{
format(kstring,sizeof(kstring),"~b~%s ~w~has ~r~died.",pName);
TextDrawSetString(killdraw, kstring);
}
else
{
format(kstring,sizeof(kstring),"~b~%s ~w~has ~r~killed ~g~%s",kName,pName);
TextDrawSetString(killdraw, kstring);
}
Well but now, everytime a player died, the server crashes. Anyone got a idea why?
Re: Server crashing problem -
Striker_Moe - 30.10.2009
Yep, Iґve tested it again, as youґre using it at OnPlayerDeath, the server crashes, if not, it doesnt.
Re: Server crashing problem -
DeathOnaStick - 30.10.2009
What about first try a other number as 255 in that? I guess this might cause the bugg, but i dont know how to fix it, because i'm not handy with Death-reasons.
Cheers