[Help] Time Division
#1

Hello there, It may seem simple, but I really do not know how to do this I've created a timer with a countdown, but currently it's popping up like this:

18000, 17999, 17998... (This is 5 Hours in seconds);

How to show it like this:

05:00:00, 05:59:59, 05:59:58...

Who can help me, I'll be eternally grateful.
Reply
#2

Maybe this is your function (i do not tested it)

Код:
ConvertToHours(time)
{
   new string[48];
   format(string, sizeof(string), "%02d:%02d:%02d", floatround((time / 3600), floatround_floor), floatround((time % 3600) / 60), time % 60);
   return string;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)