Jump to content

Expected positive, got negative


joaosilva099

Recommended Posts

What sort of data is "negative" and "positive"?

Bad argument @ 'dbPoll' [Expected positive value, got negative]

And therefore...

bad argument #1 to 'ipairs' (table expected, got boolean)

The query is ok! I checked the db logs and it says success and it's showing the right results, but I can't use dbPoll with it on the scripts... I am using MySQL, could it be with a dll or something?

EDIT:

I found out, maybe "negative" and "positive" refers to the second argument on dbPoll, but it must be negative, it says on the wiki, to wait until the result is ready use -1

  
dbPoll(q, -1) 
  

Link to comment

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