Compile Errors
#4

i suggest you use this simple function:

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;
}
an example:

pawn Код:
new sec = 5162;
new Hours, Minutes, Seconds;
Sec2HMS(sec, Hours, Minutes, Seconds);
printf("%d:%d:%d",Hours, Minutes, Seconds);

//Output: 1:26:2
Reply


Messages In This Thread
Compile Errors - by SecretBoss - 31.01.2015, 07:57
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:06
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:07
Re: Compile Errors - by M4D - 31.01.2015, 08:13
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:16
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:20
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:22
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:25
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:30
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)