seconds to minutes and seconds
#4

Or more simply
pawn Код:
stock strtime(seconds)
{
    new string[16];
    format(string,16,"%02d:%02d",seconds/60,seconds%60);
    return string;
}
pawn Код:
printf("Time Remaining:  %s",strtime(361));
Will print
Код:
Time Remaining:  06:01
Reply


Messages In This Thread
seconds to minutes and seconds - by Pooh7 - 04.04.2011, 18:52
Re: seconds to minutes and seconds - by Donya - 04.04.2011, 18:54
Re: seconds to minutes and seconds - by Pooh7 - 04.04.2011, 18:55
Re: seconds to minutes and seconds - by Joe Staff - 04.04.2011, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)