Jump to content

dbpoll


Best-Killer

Recommended Posts

function getPlayerID(player)
	plid = false
	pqr = db_query ( "SELECT * FROM accountdata WHERE Username=? LIMIT 1", getAccountName(getPlayerAccount(player)))
	pqp = dbPoll(pqr, -1)
	for k, plas in ipairs (pqp) do
		plid = plas["id"]
	end
	if plid then return plid else return "Not logged in" end
end

bad argument dpPoll expected dbquery at argument 1 got table 

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