22.06.2009, 20:41
Quote:
Originally Posted by .:NoZer0:.
pawn Код:
|
Example Minutes: 150
150 / 60 = 2.5
... split code
2:5 (should be 2:30)
pawn Код:
new string[6]; //I expect that you have a variable called 'Minutes'
format(string, sizeof string, "%02d:%02d", (Minutes / 60), (Minutes % 60));