18.10.2011, 12:31
Hi, how do that, if I got number 1264489, how decrypted week,days,hours,minutes. Please help and ty.
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);