SA-MP Forums Archive
Seconds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Seconds (/showthread.php?tid=570744)



Seconds - ZeZin - 12.04.2015

I am doing a vip system using getTime is to convert the secundos in days?


Re: Seconds - iZN - 12.04.2015

I guess you're looking for something like this?

pawn Код:
new oneDay = (gettime() + 86400);
gettime()
Epoch Converter


Re: Seconds - ZeZin - 14.04.2015

I'm already using getTime have any stock or tutorial for converting?


Re: Seconds - J4Rr3x - 14.04.2015

Triy this:
pawn Код:
stock SecondsToDays (seconds)
    return seconds / (60 * 60 * 24); // Credits to J4Rr3x