unix 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: unix timestamp (
/showthread.php?tid=543201)
unix timestamp -
EdvardasK - 25.10.2014
hi,
I have a problem. If really, I dont know how to "load" and "save" unix timestamps on mysql.. So, for example :
if I have " new mute_time[MAX_PLAYERS]; " yeah, and I'm adding time to it ( " mute_time[playerid] = gettime() + 3600; " ), so how I should save this time and load it ? Please help ;/
Re: unix timestamp -
dominik523 - 25.10.2014
Save it as any other variable, It's only an integer.
Again, load it as any other integer (i.e. admin level or player's money)
Re: unix timestamp -
EdvardasK - 25.10.2014
Quote:
Originally Posted by dominik523
Save it as any other variable, It's only an integer.
Again, load it as any other integer (i.e. admin level or player's money)
|
ok I'll try.

Thanks for help