Making a number into a Time
#2

Quote:
Originally Posted by zallomallo
I am working on my jail system and I have a little timer to show you how much time you have left. However if you are given say 200 IG minutes I want to make that be 2:33 for 2 hours and 33 minutes IG. Any help? Thanks.
pawn Код:
new time[8];
format(time, 8, "%2.2", minutes/60);
new splitted[2][4];
split(time, splitted, ".");
format(time, 8, "%s:%s");
dont know if it works but i am on my psp, so cant test it
Reply


Messages In This Thread
Making a number into a Time - by zallomallo - 22.06.2009, 20:08
Re: Making a number into a Time - by [nl]daplayer - 22.06.2009, 20:20
Re: Making a number into a Time - by Nero_3D - 22.06.2009, 20:41
Re: Making a number into a Time - by [nl]daplayer - 23.06.2009, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)