Help with ghmattimysql query

Someone could help me with this errors?



Can you try using something like this and see if it grabs the data you need?

exports.ghmattimysql:execute('SELECT * FROM `players` WHERE citizenid=@cid', {
        ['cid'] = jugador.citizenid
    }, function(result)
        if result[1] ~= 0 then
            -- Your code    
        else
            -- No results
            return
        end
end)

If it doesn’t work you can try adding @ to ['cid'] so it looks like ['@cid'] but it should work without the @ (at least it does for me).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.