26.11.2014, 04:43
you can use this
pawn Код:
stock Sec2HMS(secs, &hours, &minutes, &seconds)
{
if (secs < 0) return false;
minutes = secs / 60;
seconds = secs % 60;
hours = minutes / 60;
minutes = minutes % 60;
return 1;
}
new H,M,S,string[50];
new sec = /*Your total seconds here*/
Sec2HMS(sec,H,M,S);
format(string,sizeof(string),"%d:%d:%d",H,M,S);