Dazee Posted May 10, 2015 Share Posted May 10, 2015 SOOO I spend the past 10 hours trying to figure out what the heck is the problem it literally worked on the previous PC well on my previous system windows 10, maybe MTA got updated or something I'm not sure so the problem is, I supposedly register the account with the panel works fine then redirects it to the login panel to login works fine until you login, it says my side that it logged in my own outputChatBox but it does not display the MTA's you logged in message, but that is only for that account I registered for testing via the panel, but when I login with the account I created a long time ago it loggs it in like wtf ? the only warning I get is [2015-05-10 21:35:38] WARNING: handlers\loginh1.lua:24: Bad argument @ 'spawnPlayer' [Expected vector3 at argument 2, got boolean] Here are pastebin links for all the scripts that link to the panel register and stuff like that and ofcourse the main server handler that handles a ton of stuff. I put it on pastebin since the code is humungous I just give up on it for now so good luck hope you can help me out. login_c.lua>> http://pastebin.com/0xBEWgV2 login_s.lua>> http://pastebin.com/Xf0W7ZS4 register_c.lua>> http://pastebin.com/jJHWG0yD register_s.lua>> http://pastebin.com/3RC5C79A loginh1.lua>> http://pastebin.com/ekcPvXJZ THIS IS THE MAIN HANDLER Thanks in advance Link to comment
Dimos7 Posted May 10, 2015 Share Posted May 10, 2015 you have save them to a nother script the locations? Link to comment
Dazee Posted May 11, 2015 Author Share Posted May 11, 2015 Register and login client and serverside scripts are in one resource as for the handler loginh1.lua its seperate. Link to comment
Dimos7 Posted May 11, 2015 Share Posted May 11, 2015 I mean you have save them like this setAccountData(account, "loginlocation.x", x) ? if not exist then no can find the x ,y, z so request them Link to comment
Dazee Posted May 11, 2015 Author Share Posted May 11, 2015 It doesen't process the login it just executes those things but does not logg them in and that's the only warning I get but that is only for accounts that are made with the panel.It does not make any sense Link to comment
Enargy, Posted May 11, 2015 Share Posted May 11, 2015 if ( loginX and type(loginX) == "number" ) and ( loginY and type(loginY) == "number" ) and ( loginZ and type(loginZ) == "number" ) then spawnPlayer(playerFromName,loginX,loginY,loginZ); setElementFrozen(source,false); else return false; end not tested Link to comment
Dazee Posted May 11, 2015 Author Share Posted May 11, 2015 I made a video explaining it and the demonstration of it its rendering now when i upload it i will put a youtube link here. Because you guys pretty much misunderstood it. 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