So now I'm quiet close to finish my login/ register script but 1 more problem is there the server is saying that there is an error in line 6 but I think it is right
StartServer.lua:6: ')' expected near ','
function loginHandler(username,password)
local = connect = dbConnect("mysql", "dbname=mta_userdata;host=127.0.0.1","root","klaas","share=1" )
if
(connect,"SELECT (Name,Passwort) FROM `user` WHERE (Name = ?,Passwort = ?)", tostring ( username ), tostring ( password ) )
then
spawnPlayer(source, 1959.55, -1714.46, 10)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Willkommen!", source)
end
else
outputChatBox("Invalid username and password. Please re-connect and try again.",source)
end
end
addEvent("submitLogin", true)
addEventHandler("submitLogin",getRootElement(),loginHandler)