TOD not working [++REP]
#10

Command looks fine and it must work so its not the cmd..by the way make it more simple
pawn Код:
CMD:tod(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    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);
    return 1;
}
And you dont need that gTime unless you use it to detect time...
Reply


Messages In This Thread
TOD not working [++REP] - by varuncoolrule - 24.02.2012, 13:49
Re: TOD not working [++REP] - by varuncoolrule - 24.02.2012, 14:06
Re: TOD not working [++REP] - by Twisted_Insane - 24.02.2012, 14:57
Re: TOD not working [++REP] - by Kaperstone - 24.02.2012, 15:01
Re: TOD not working [++REP] - by Twisted_Insane - 24.02.2012, 15:04
Re: TOD not working [++REP] - by TheTale - 24.02.2012, 15:44
Re: TOD not working [++REP] - by TheTale - 24.02.2012, 15:46
Re: TOD not working [++REP] - by varuncoolrule - 25.02.2012, 06:29
Re: TOD not working [++REP] - by varuncoolrule - 25.02.2012, 09:18
Re: TOD not working [++REP] - by DRIFT_HUNTER - 25.02.2012, 09:56

Forum Jump:


Users browsing this thread: 2 Guest(s)