EhsanReacher Posted June 26 Share Posted June 26 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
CastiaL Posted July 7 Share Posted July 7 Did you assign a value to the "sserial" variable? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now