16.12.2013, 00:14
I use to get the current time, using gettime() function and save the unix timestamp into my server database, you can check my previous thread. However gettime() uses UTC, meanwhile mine is UTC+2 and it won't show the proper time for anybody away from UTC. So should I use another function like NOW() or something else ?
This is how the query to save the unix timestamp looks like:
Edit: Let me note that I tried to replace gettime with NOW and it gave me this error:
This is how the query to save the unix timestamp looks like:
pawn Код:
format(query, sizeof(query), "UPDATE players SET LastLogin = '%i' WHERE Name = '%s' LIMIT 1", gettime(), Name[playerid]);
Edit: Let me note that I tried to replace gettime with NOW and it gave me this error:
pawn Код:
error 017: undefined symbol "NOW"