03.10.2012, 12:41
Hi all,
some help please, I'm having trouble with this, can't seem to change the gametime.
Also tried changing
to
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?
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; }
Код:
if(sscanf(params, "n", time))
Код:
if(sscanf(params, "i", time))
All of the above did not work, does anyone else have any other ideas on fixing this?