Help in understanding the gettime function
#3

Ah I see... Well this is the timer which is called every 60 seconds to update the time by a minute

pawn Код:
forward ClockSync();
public ClockSync()
{
    gettime(Hour, Minute);

   
   
    Minute++;
    if(Minute == 60)
    {
        Hour++;
        Minute = 0;
    }

    if(Hour >= 24) Hour = 0;
   
    for(new i; i<GetMaxPlayers(); i++) SetPlayerTime(i, Hour, Minute);

    return 1;
}
Reply


Messages In This Thread
Help in understanding the gettime function - by LiamM - 02.04.2013, 09:12
Re: Help in understanding the gettime function - by RajatPawar - 02.04.2013, 09:13
Re: Help in understanding the gettime function - by LiamM - 02.04.2013, 09:15
Re: Help in understanding the gettime function - by Hanger - 02.04.2013, 09:23
Re: Help in understanding the gettime function - by LiamM - 02.04.2013, 09:27
Re: Help in understanding the gettime function - by Hanger - 02.04.2013, 09:38
Re: Help in understanding the gettime function - by LiamM - 02.04.2013, 10:07
Re: Help in understanding the gettime function - by Hanger - 02.04.2013, 10:09
Re: Help in understanding the gettime function - by LiamM - 02.04.2013, 10:19
Re: Help in understanding the gettime function - by Konstantinos - 02.04.2013, 10:41

Forum Jump:


Users browsing this thread: 2 Guest(s)