Server stops working! - 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 stops working! (
/showthread.php?tid=247739)
Server stops working! -
Admigo - 10.04.2011
I am working for on a PTP server! But i got an problem. When the round ends the begins a new round but then if i use an admin command the server stops working! I use Ladmin V4_2.
Here is the code:
Код:
forward EndRound(playerid);
public EndRound(playerid)
{
if(TimeLeft != 0)
{
TimeLeft--;
format(TextdrawString, 128, "~y~The president will be safe in %d seconds!", TimeLeft);
TextDrawHideForAll(Textdraw);
TextDrawSetString(Textdraw, TextdrawString);
TextDrawShowForAll(Textdraw);
}
else
{
SendRconCommand("changemode PTP2");
}
return 1;
}
Thanks Admigo
Re: Server stops working! -
Admigo - 12.04.2011
Already Fixed by myself!