SA-MP Forums Archive
This returns the wrong timestamp. - 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: This returns the wrong timestamp. (/showthread.php?tid=330829)



This returns the wrong timestamp. - Dokins - 02.04.2012

pawn Code:
BanTime[giveplayerid]= gettime() + 3600 * hours1;
Why the hell is that? hours1 = the amount of hours.


Re: This returns the wrong timestamp. - blank. - 02.04.2012

Try BanTime[giveplayerid] = (gettime() + 3600) * hours1;