25.11.2014, 22:31
Don't know what variables you're using but I'll go with totalSeconds, hours, minutes and seconds:
pawn Код:
new temp, hours, minutes, seconds;
temp = totalSeconds % 3600;
hours = (totalSeconds - temp) / 3600;
minutes = (temp - (temp % 60)) / 60;
seconds = temp % 60;