Jump to content

Lua Code Problem


Recommended Posts

hi i have a error from this code

            --- < PERSONAGEM 2 > ---
            local sqll3 = dbPoll(dbQuery(Connection, "SELECT * FROM zn_users_saves WHERE serial = ?", ""..sserial.."-2p"), -1)
            for _33, roww3 in ipairs(sqll3) do
                if roww3 then
                    if getElementData(pv, "ZN-Logado") == false then
                        sid2 = roww3["id"]
                        snome2 = ""..roww3["nome"].." "..roww3["sobrenome"]..""
                        sidade2 = roww3["idade"]
                        snascimento2 = roww3["nascimento"]
                        sserial2 = roww3["serial"]
                    end
                    triggerClientEvent(pv, "ZN-CarregarPersonagensC2", root, sid2, snome2, sidade2, snascimento2, sserial2)
                end
            end

        end
    end
    setTimer(zncpersonagem, 50, 1)
end
-- zncpersonagem()
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), zncpersonagem)
 

error is attemp to concatenate global `serial ` <a nill value> 

this error is for this line

local sqll3 = dbPoll(dbQuery(Connection, "SELECT * FROM zn_users_saves WHERE serial = ?", ""..sserial.."-2p"), -1)

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...