Izemrasen Posted December 23, 2017 Share Posted December 23, 2017 Bad arguement @ 'getAccount' [Expected string at argument 1, got player] Hey, i'm very new to scripting and I can already read scripts but I have trouble with debugging. I have a problem with a simple login panel I made. The debug is above. My code is here: function loginPlayer(username,password) if not (username == "") then if not (password == "") then local account = getAccount ( username, password ) if ( account ~= false ) then logIn (source, account, password) triggerClientEvent (source,"hideWindow1",getRootElement()) end end else outputChatBox ("Insert your password/username",source,255,255,255,true) end end addEvent("onPlayerLogin", true) addEventHandler("onPlayerLogin", getRootElement(), loginPlayer) Link to comment
Dimos7 Posted December 24, 2017 Share Posted December 24, 2017 That is you full code? Link to comment
Izemrasen Posted December 24, 2017 Author Share Posted December 24, 2017 (edited) Nope. I can't give the whole code because the design is special and took me a lot of time. but if you can be specific on what you want I can surely give you the part of the code Bare in mind that other widely available resources influenced my script since I'm new and I find them a great way to learn Edited December 24, 2017 by Izemrasen Link to comment
Izemrasen Posted December 24, 2017 Author Share Posted December 24, 2017 Any help? bump Link to comment
aka Blue Posted December 24, 2017 Share Posted December 24, 2017 If you dont share all the code we cant help you Link to comment
Dimos7 Posted December 24, 2017 Share Posted December 24, 2017 Well need and you client side for help you Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now