• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Jak pobrać last login gracza

Kurczok

Newbie
Joined
Oct 22, 2009
Messages
497
Reaction score
4
Witam mam pewien problem ponieważ nie wiem jak pobrać datę ostatniego logowania gracza, nigdy nie było mi potrzebne bezpośrednie pobieranie info z bazy.

Nie proszę o gotowca a jedynie o podanie jakiegoś przykładu na podstawie którego zrozumiem jak to działa.

Z góry dzięki.
 
To jest chyba getPlayerLastLogin(cid) w 0.3.5 :d
 
Mam jeszcze jedno pytanie jak zwracana wartość zamienić na datę ?

przypuszczalnie: 1261152361984
 
login.lua z tfs - szukanie nie boli
Lua:
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
 
Back
Top