SyncTime problem +REP
#2

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
Hello guys this can someone help with synctime it doesn't work please help +REP


pawn Код:
public SyncTime()
{
    new string[64];
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
    if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
    {
        format(string, sizeof(string), "SERVER: The time is now %d:00 hours",tmphour);
        SendClientMessageToAll(COLOR_WHITE,string);
        ghour = tmphour;
        Payday();
        if (realtime)
        {
            SetWorldTime(tmphour);
        }
    }
}
Just remove this code:
pawn Код:
|| (tmphour == 0 && ghour == 23)
Reply


Messages In This Thread
SyncTime problem +REP - by RenSoprano - 17.07.2012, 14:37
Re: SyncTime problem +REP - by BlackBank - 17.07.2012, 14:39
Re: SyncTime problem +REP - by RenSoprano - 17.07.2012, 17:51
Re: SyncTime problem +REP - by TheArcher - 17.07.2012, 18:11
Re: SyncTime problem +REP - by hansen111 - 17.07.2012, 18:13
Re: SyncTime problem +REP - by RenSoprano - 17.07.2012, 18:23
Re: SyncTime problem +REP - by RenSoprano - 18.07.2012, 13:16
Re: SyncTime problem +REP - by RenSoprano - 21.07.2012, 19:43
Re: SyncTime problem +REP - by SuperViper - 21.07.2012, 19:46
Re: SyncTime problem +REP - by [A]ndrei - 21.07.2012, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)