[HELP]Saving Hours, Minutes, Seconds
#5

Quote:
Originally Posted by Knappen
Посмотреть сообщение
Some like that is definitely the best way, but what happens if it passes 12?
Thanks for that, I forgot to assign the seconds left in "s" variable.

pawn Код:
stock ReturnGameTime2(seconds, &h, &m, &s)
{
    h = seconds / 3600;
    m = seconds / 60 % 60;
    s = (seconds = seconds % 60);
}
Reply


Messages In This Thread
[HELP]Saving Hours, Minutes, Seconds - by ApOcAlYpSe98 - 22.03.2014, 12:26
Re: [HELP]Saving Hours, Minutes, Seconds - by Knappen - 22.03.2014, 13:14
Re: [HELP]Saving Hours, Minutes, Seconds - by Konstantinos - 22.03.2014, 13:51
Re: [HELP]Saving Hours, Minutes, Seconds - by Knappen - 22.03.2014, 17:01
Re: [HELP]Saving Hours, Minutes, Seconds - by Konstantinos - 22.03.2014, 20:27
Re: [HELP]Saving Hours, Minutes, Seconds - by Knappen - 22.03.2014, 20:29
Re: [HELP]Saving Hours, Minutes, Seconds - by Konstantinos - 22.03.2014, 20:39
Re: [HELP]Saving Hours, Minutes, Seconds - by Knappen - 22.03.2014, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)