maciel Posted April 23, 2021 Share Posted April 23, 2021 tem algo errado aqui rapaziada? have something wrong in the script? local x,y,z,dim,inter,rot = unpack(fromJSON(v.pos)); Erro no Console WARNING: fv_bank\server.lua:33: Bad argument @ 'fromJSON' [Expected string at argument 1, got nil] [2021-04-23 14:41:42] ERROR: fv_bank\server.lua:33: bad argument #1 to 'unpack' (table expected, got nil) [2021-04-23 14:41:48] WARNING: fv_bank\server.lua:33: Bad argument @ 'fromJSON' [Expected string at argument 1, got nil] [DUP x3] [2021-04-23 14:41:48] ERROR: fv_bank\server.lua:33: bad argument #1 to 'unpack' (table expected, got nil) [DUP x3](editado) Link to comment
SpecT Posted April 24, 2021 Share Posted April 24, 2021 (edited) Welcome to the Forums! * Your thread has been moved to the Scripting section. On-topic: You get errors because you don't receive a result. Your syntax for dbQuery seems to be wrong. The first argument must be the SQL connection and the 2nd the query (string). With dbPoll you take the result from this query (dbQuery). Please, take a look at the documentation of dbPoll. There you can find many examples how to use it. Edited April 24, 2021 by SpecT 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