[Help]Keep on changing
#1

I type /tod 0 0
It set to night then suddenly change to day again..?
I dont know why..
pawn Код:
CMD:tod(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1337)
    {
        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;
}
Reply
#2

do you have time system? if you have time system then this is the problem causing the night to day again
Reply
#3

ohh how can i change it?
Reply
#4

show me your time system code maybe i can help ??
Reply
#5

whaat/ idk wheres the place of The time system code.
Reply
#6

did you remember anything putting a time system code on your gamemode or somewhere?
do you have teamviewer i can help you out
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)