shebee
2013-03-18 22:47:03
Basically my ConvertTime only returns with the hour but no minutes or seconds in my proggy.
[PHP]ConvertTime(((XPToNext / XPPerHour) * 3600000), h, m, s);
Writeln(IntToStr(h) + 'h:' + IntToStr(m) + 'm:' + IntToStr(s));[/PHP]
I've got h, m, s vars set in the procedure.
Output is something like this:
[PHP]3h:0m:0[/PHP]
I can't find how the ConvertTime procedure works exactly so I'm a little lost here.
Edit:
Ok so I printed the value in my proggy for debugging and it returns 10800000 and not 11303192 (rounded) as it should…
[PHP]ConvertTime(((XPToNext / XPPerHour) * 3600000), h, m, s);
Writeln(IntToStr(h) + 'h:' + IntToStr(m) + 'm:' + IntToStr(s));[/PHP]
I've got h, m, s vars set in the procedure.
Output is something like this:
[PHP]3h:0m:0[/PHP]
I can't find how the ConvertTime procedure works exactly so I'm a little lost here.
Edit:
Ok so I printed the value in my proggy for debugging and it returns 10800000 and not 11303192 (rounded) as it should…