Jump to content

Help


Recommended Posts

Hello i just have a question how i can be get the data from mysql like posX posY etc

unction loginReguest(player,username,password)
	local check = exports.mysql:_QuerySingle("SELECT * FROM users WHERE username = ? " ,username)
	if check then
		local checkPass = check.password
		if (checkPass == password) then
			logIn(player,getAccount(username),getAccount(password))
			triggerClientEvent(player,"showHide", getRootElement())
			outputDebugString("User Logged In")
			
		end
	end
end
addEvent("logIn",true)
addEventHandler("logIn",getRootElement(), loginReguest)

but my character data is in the different table i want to get the player namemoney and the position :) but i cant figure out how i cant find any mysql tutorials for this. :( pls help

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