[HELP] time convert
#1

Hi guys, I need to convert the time from minutes to hours.. For example: 68min --> 1 h. 8 min.

I have this one:

pawn Код:
TimeConvert(seconds)
{
    new tmp[16];
    new minutes = floatround(seconds/60);
    seconds -= minutes*60;
    format(tmp, sizeof(tmp), "%d:%02d", minutes, seconds);
    return tmp;
}
How to change?
Reply


Messages In This Thread
[HELP] time convert - by V4at - 03.01.2015, 09:12
Re: [HELP] time convert - by Sascha - 03.01.2015, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)