Jump to content

Não consigo resolver estes erros:


Recommended Posts

Posted
[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)

 

Posted

Não temos como ajudar com scripts vazados, por isso mesmo seria mais fácil você baixar uma versão pública ao qual todos temos acesso ou tentar fazer seu próprio código.

  • DNL291 locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...