SA-MP Forums Archive
gettime seconds or hours - 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: gettime seconds or hours (/showthread.php?tid=650532)



gettime seconds or hours - PepsiCola23 - 01.03.2018

PHP код:
if(gettime() - TickGarbage[playerid] <3) return 0
what does the 3 mean? in what value does gettime return : seconds,hours,miliseconds?


Re: gettime seconds or hours - Stev - 01.03.2018

This might help you,

https://sampwiki.blast.hk/wiki/Gettime

gettime() return a unix timestamp.


Re: gettime seconds or hours - David (Sabljak) - 01.03.2018

Seconds, it's defined by seconds by default