MKTime
#5

pawn Code:
new time = 1264489;
new days,hours,minutes;
while (time >= 86400)
{
    days++;
    time-=86400;
}
while(time >=  3600)
{
    hours++;
    time-=3600;
}
while(time >= 60)
{
    minutes++;
    time-=60;
}

format(string, 44,"%d Days - %d Hours - %d Minutes - %d Seconds",days, hours, minutes, time);
Reply


Messages In This Thread
MKTime - by gedux123775 - 18.10.2011, 12:31
Re: MKTime - by Pharrel - 18.10.2011, 12:35
Re: MKTime - by gedux123775 - 18.10.2011, 12:38
Re: MKTime - by nilanjay - 18.10.2011, 12:40
Re: MKTime - by Pharrel - 18.10.2011, 12:57
Re: MKTime - by gedux123775 - 18.10.2011, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)