Converting Seconds to M, S
#5

also you can use this function
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);
....
Reply


Messages In This Thread
Converting Seconds to M, S - by JaKe Elite - 21.11.2014, 11:34
Re: Converting Seconds to M, S - by renegade334 - 21.11.2014, 11:45
Re: Converting Seconds to M, S - by JaKe Elite - 21.11.2014, 11:54
Re: Converting Seconds to M, S - by CoaPsyFactor - 21.11.2014, 12:04
Re: Converting Seconds to M, S - by M4D - 21.11.2014, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)