MKTime
#1

Hi, how do that, if I got number 1264489, how decrypted week,days,hours,minutes. Please help and ty.
Reply
#2

what is 1264489? seconds?
Reply
#3

Yes.
Reply
#4

You need to use little maths here. Try to change second into minutes then hours.
Reply
#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
#6

Ty very much ))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)