Jump to content

poll Fail [ SQL ]


Recommended Posts

getRanking = function()
                local rankCash = conn:query('SELECT TOP 3 * FROM teamSystem ORDER BY cash DESC')
                local resultCash = rankCash:poll(-1) or {}
                local rankReputation = conn:query('SELECT TOP 3 * FROM teamSystem ORDER BY reputation DESC')
                local resultReputation = rankReputation:poll(-1) or {}
                return resultCash,resultReputation
            end,

[2018-01-18 11:39:10] WARNING: new\storage\sql_team.lua:148: poll failed; near "3": syntax error

WTF ERROR dahsdjksaj alguem sabe outra sql que vá me da o mesmo resultado ou como acerta isso?

 

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