20.06.2014, 19:22
Baiscly, I have a race script, when player finishes, it converts tick count to readable form:
On windows:
0:45.43
On linux:
0: 4.54
using:
On windows:
0:45.43
On linux:
0: 4.54
using:
Код:
new ReturnTime[10],minutes,seconds; minutes = floatround(ticks/60000,floatround_round); ticks = ticks - (60000 * minutes); seconds = floatround(ticks/1000); ticks = ticks - (1000 * seconds); format(ReturnTime,sizeof(ReturnTime),"%2d:%2d.%2d",minutes,seconds,ticks); return ReturnTime;