Jump to content

Big problem with my login panel and handler


Dazee

Recommended Posts

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

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

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