Quote:
Originally Posted by Krakuski
So you want it to print the time the player logged in?
Try this:
pawn Код:
new Hour, Minute, Second; //Top of the function gettime(Hour, Minute, Second); //Top of the function format(query, sizeof(query), "UPDATE players SET LastLogin = '%02d:%02d:%02d' WHERE Name = '%s' LIMIT 1",Hour, Minute, Second, Name[playerid]); //Paste this
This is currently untested.
|
Nope the problem is that gettime() returns 1387154236 while it has to be 1387161436 for my country - Bulgaria which is UTC+2.
You can read more, about the unix time -
there.