16.12.2013, 00:19
So you want it to print the time the player logged in?
Try this:
This is currently untested.
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