Message 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)
+--- Thread: Message problem (
/showthread.php?tid=607144)
Message problem -
Lajko1 - 15.05.2016
Код:
YCMD:openevent(playerid,params[],help)
{
if(Event == 0)
{
SendClientMessageToAll(-1,"{FF8000}[EVENT]: An Admin has started the event! Type {0080FF}/event);
CountDownTimer = SetTimer("EventStart", 1000, true);
Event = 1;
}
else
{
SendClientMessageToAll(-1,"{FF8000}[EVENT]: {FFFFFF}An Admin has ended the event!");
Event = 0;
KillTimer(CountDownTimer);
CountDownVar = 31;
}
return 1;
}
Why this code doesn't want to send SendClientMessageToAll at first "if" ?
Re: Message problem -
Sjn - 15.05.2016
Код:
SendClientMessageToAll(-1,"{FF8000}[EVENT]: An Admin has started the event! Type {0080FF}/event");
You are missing " at last. I wonder how didn't you get an error for this at first place.
Re: Message problem -
Lajko1 - 15.05.2016
oh nah i was editing it a bit and forgot to add " .. so no errors on line but msg isn't displayed