[21-11-27 20:58:44] WARNING: [FACTION]/san_dashboard/exServer.lua:92: dbPoll failed; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups' at line 1
[21-11-27 20:58:44] ERROR: [FACTION]/san_dashboard/exServer.lua:100: bad argument #1 to 'ipairs' (table expected, got boolean)
addCommandHandler("vgrupos", function (playerSource)
if tonumber(getElementData(playerSource, "acc:admin")) >= 6 then
dbQuery(function(queryHandler)
local result, numAffectedRows, errorMsg = dbPoll(queryHandler, 0)
if numAffectedRows > 0 then
outputChatBox(" ", playerSource, 255, 255, 255, true)
outputChatBox("Grupo:", playerSource, 25, 181, 254, true)
for i,v in ipairs(result) do
outputChatBox("ID: #1b96fe"..v['groupID'].. " #ffffffNome: #1b96fe".. v['Name'], playerSource, 255, 255, 255, true)
end
end
end, connection, "SELECT * FROM groups")
end
end)