• 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!

Error login 10.41

psilocibe

Member
Joined
Jul 9, 2007
Messages
479
Reaction score
8
I compiled and ran 10:41 tfs 1.0 when I enter the server gives this error.

error.gif


what can be?
Sera something in the database?
What do you think?
 
You get this debug if you have a textmessage with type 16, can you post your login.lua or other scripts with type login?
Or if you already found it, change 16 to MESSAGE_STATUS_DEFAULT in the textmessage.
 
You get this debug if you have a textmessage with type 16, can you post your login.lua or other scripts with type login?

login.lua
Code:
function onLogin(cid)
        local player = Player(cid)

        local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!"
        if player:getLastLoginSaved() <= 0 then
                loginStr = loginStr .. " Please choose your outfit."
                player:sendOutfitWindow()
        else
                if loginStr ~= "" then
                        player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
                end

                loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved()))
        end
        player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)

        player:registerEvent("PlayerDeath")
        return true
 
Back
Top