21.11.2014, 12:51
also you can use this function
you can convert Second to H , M and S !
you can convert Second to H , M and S !
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;
}
e.g.
new sec = BlaBla /*Your Seconds*/;
new H,M,S,str[28];
Sec2HMS(sec,H,M,S);
format(str,sizeof(str),"%d:%d:%d",H,M,S);
....