/changetime Bug
#1

The time is not changing.

Код:
  	if(strcmp("/changetime", cmd, true) == 0)
	{
		new tmp[256], cmdid;

		tmp = strtok(cmdtext, idx);
		if(PlayerInfo[playerid][AdminLevel] < 1) return 0;
		if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /changetime [time]");
		cmdid = strval(tmp);
     	if(cmdid < 0 || cmdid > 24) return SendClientMessage(playerid,COLOR_ORED,"Wrong Time!");
		SetWorldTime(cmdid);
		SendClientMessageToAll(COLOR_LIGHTGREEN,"An Admin has changed the time!");
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)