Message problem
#1

Код:
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" ?
Reply
#2

Код:
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.
Reply
#3

oh nah i was editing it a bit and forgot to add " .. so no errors on line but msg isn't displayed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)