sckatchof Posted March 16, 2012 Author Share Posted March 16, 2012 Could you post the warnings/errors you got? when i press button to change password i have warnig at lien 12 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 local accountName = getAccountName ( account ) local password_check = getAccount(accountName, oldpassword) if (password_check ~= false) then if (string.len(newpassword) >= 5) then setAccountPassword(account, newpassword) triggerClientEvent(player, "hidePasswordWindow", getRootElement()) else outputChatBox("Your new password must be at least 5 characters long!", player) end else outputChatBox("Old password invalid.", player) end end end addEvent("submitChangepw", true) addEventHandler("submitChangepw", root, passwordHandler) Link to comment
Castillo Posted March 16, 2012 Share Posted March 16, 2012 I know that, but what warning? I can't test the script right now. Post the debugscript warning. Link to comment
sckatchof Posted March 16, 2012 Author Share Posted March 16, 2012 I know that, but what warning? I can't test the script right now.Post the debugscript warning. ok i have make ss for it Pic : Link to comment
Castillo Posted March 16, 2012 Share Posted March 16, 2012 You must add the resource to "acl.xml" on "Admin" group. Link to comment
sckatchof Posted March 16, 2012 Author Share Posted March 16, 2012 (edited) You must add the resource to "acl.xml" on "Admin" group. thank you snake it work Edited March 16, 2012 by Guest 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