jwalks Posted November 24, 2010 Share Posted November 24, 2010 function passwordHandler(player, oldpassword, newpassword) local account = getPlayerAccount(player) if (account) then if (isGuestAccount(account)) then outputChatBox("You must be logged in to change your password.", player) return end end end function loginHandler(player, username, password) local account = getAccount(username, password) if (account ~= false) then if (logIn(player, account, password) == true) then outputChatBox("If you want to change your password, use /changepw", player) triggerClientEvent (player, "hideLoginWindow", getRootElement()) else triggerClientEvent (player, "unknownError", getRootElement()) end else triggerClientEvent (player, "loginWrong", getRootElement()) end end function registerHandler(player, username, password) local account = getAccount(username, password) if (account ~= false) then triggerClientEvent(player, "registerTaken", getRootElement()) else account = addAccount(username, password) if (logIn(player, account, password) == true) then warning at lines 31,32 Link to comment
DakiLLa Posted November 24, 2010 Share Posted November 24, 2010 warning at lines 31,32 Which one? I think you have not added your resource to ACL.xml, so it doesnt have an access to add new accounts. Link to comment
jwalks Posted November 24, 2010 Author Share Posted November 24, 2010 how will i add the rescource Link to comment
dzek (varez) Posted November 25, 2010 Share Posted November 25, 2010 https://wiki.multitheftauto.com/wiki/Ser ... nistrators but instead of "user.Something" make it "resource.your_resource" read whole server manual btw 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