How to set time without clock?
#2

Personally, I would do this:
pawn Код:
forward relogio();
public relogio()
{
       minutes = minutes + 1;
       if(minutes == 60)
       {
            minutes = 0;
            hours = hours + 1;
            SetWorldTime(hours);
       }
       if(hours == 24)
       {
             minutes = 0;
             hours = 0;
       }
}
That's how it was done for me, I hope this helps a bit.
Reply


Messages In This Thread
How to set time without clock? - by blackwave - 29.11.2010, 15:00
Re: How to set time without clock? - by TPD - 29.11.2010, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)