18.10.2011, 12:57
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);