tod problem
#1

Hi all,
some help please, I'm having trouble with this, can't seem to change the gametime.
Код:
CMD:tod(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 5)
	{
		new string[128], time;
		if(sscanf(params, "d", time)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /tod [time] (0-23)"); 

		SetWorldTime(time);
		gTime = time;
		format(string, sizeof(string), "Time set to %d:00.", time);
		BroadCast(COLOR_GRAD1, string);
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	}
	return 1;
}
Also tried changing
Код:
if(sscanf(params, "n", time))
to
Код:
if(sscanf(params, "i", time))
I did try to remove gTime=time also.
All of the above did not work, does anyone else have any other ideas on fixing this?
Reply


Messages In This Thread
tod problem - by shauncyq - 03.10.2012, 12:41
AW: tod problem - by BiosMarcel - 03.10.2012, 12:44
Re: AW: tod problem - by shauncyq - 03.10.2012, 12:49
Re: tod problem - by SuperViper - 03.10.2012, 14:23
Re: tod problem - by shauncyq - 04.10.2012, 01:02
Re: tod problem - by dannyk0ed - 04.10.2012, 01:06
Re: tod problem - by shauncyq - 04.10.2012, 01:42
Re: tod problem - by shauncyq - 04.10.2012, 02:21

Forum Jump:


Users browsing this thread: 1 Guest(s)