Jump to content

[HELP] Bad argument @ 'fromJSON'


maciel

Recommended Posts

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)
 
spacer.png
 
 
Link to comment

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 by SpecT
Link to comment
  • Patrick changed the title to [HELP] Bad argument @ 'fromJSON'

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...