gettime()
#3

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.
Reply


Messages In This Thread
gettime() - by x96664 - 16.12.2013, 00:14
Re: gettime() - by Krakuski - 16.12.2013, 00:19
Re: gettime() - by x96664 - 16.12.2013, 00:24
Re: gettime() - by Chenko - 16.12.2013, 00:50
Re: gettime() - by x96664 - 16.12.2013, 12:52
Re: gettime() - by arakuta - 16.12.2013, 12:59
Re: gettime() - by Vince - 16.12.2013, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)