11.10.2014, 02:04
Assuming 'time' is in seconds, this is all you need:
pawn Код:
ConvertToMinutes(time)
{
new string[10], minutes = 0;
while(time >= 60) minutes++, time -= 60;
format(string, sizeof(string), "%02d:%02d", minutes, time);
return string;
}