Jump to content

Expected db-connection at argument 2 Error


qherox12

Recommended Posts

function loadAllElevators(res)
	triggerClientEvent("interior:clearElevators", getRootElement())
	dbQuery(
		function(qh)
			local res, rows = dbPoll(qh, 0)
			if rows > 0 then
				for index, row in ipairs(res) do
					loadOneElevator(row.id)
				end
			end
		end,
	mysql:getConnection(), "SELECT id FROM elevators")
end
setTimer(loadAllElevators,timerLoadAllElevators, 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...