SkatCh Posted April 27, 2014 Posted April 27, 2014 hello there , guys please can anyone tell me what's wrong here when i try to register an other account this Error appear : Warning : Login\Loginpanel_server.lua:45: access denied @ ' addAccount' Script login panel : -- Registration here function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then triggerClientEvent(source,"hideRegisterWindow",getRootElement()) outputChatBox ("#0000FF* #FFFFFFYou have sucessfuly registered! [username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",source,255,255,255,true ) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) else outputChatBox ("#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",source,255,255,255,true ) end else outputChatBox ("#0000FF* #FFFFFFError! An account with this username already exists!",source,255,255,255,true ) end else outputChatBox ("#0000FF* #FFFFFFError! Passwords do not match!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please confirm your password!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please enter a password!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please enter a username you would like to register with!",source,255,255,255,true) end end Failure is simply an opportunity to begin again more intelligently - Henry Ford
Castillo Posted April 27, 2014 Posted April 27, 2014 You must add the resource to the ACL group "admin". https://wiki.multitheftauto.com/wiki/ACL San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
SkatCh Posted April 27, 2014 Author Posted April 27, 2014 Problem still exist Failure is simply an opportunity to begin again more intelligently - Henry Ford
Castillo Posted April 27, 2014 Posted April 27, 2014 You must modify the ACL while the server is stopped. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
SkatCh Posted April 27, 2014 Author Posted April 27, 2014 yes i do but when try to register a new account the error appear maybe there is something wrong in the script Failure is simply an opportunity to begin again more intelligently - Henry Ford
Toffbrown Posted April 28, 2014 Posted April 28, 2014 "resource.Login" /> add this to the admin ACL group I DON'T HAVE HATERS, I JUST HAVE FANS IN DENIAL
SkatCh Posted April 28, 2014 Author Posted April 28, 2014 :fp: i know men and i add it but when i try to register a new account the error appear . Failure is simply an opportunity to begin again more intelligently - Henry Ford
Woovie Posted April 28, 2014 Posted April 28, 2014 :fp: i know men and i add it but when i try to register a new account the error appear . Then no, you didn't add it. That's the only way this error can occur. "The humble beet is the answer to all riddles." - Rolf
SkatCh Posted April 28, 2014 Author Posted April 28, 2014 Problem fixed thx all . Failure is simply an opportunity to begin again more intelligently - Henry Ford
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