Guest Posted May 13, 2008 Posted May 13, 2008 I have this in my lua: function changePassword ( password ) passwordChanged = setAccountPassword ( getClientName ( source ), password ) if passwordChanged then outputChatBox ( "Your password has been changed into " .. password .. ".", source ) else outputChatBox ( "Unknown error.", source ) end end If I type changepassword ***** in my console, I don't even get the message "Unknown error." but the console says: WARNING: main.lua: Access denied @ 'setAccountPassword' - Line: 38 I also have it with addAccount ( ... ) and all the account commands were you need to overwrite the accounts list but I have disabled read only for my accounts.xml. I have tried everything I knew.
Guest Posted May 13, 2008 Posted May 13, 2008 I have this in my lua: function changePassword ( password ) passwordChanged = setAccountPassword ( getClientName ( source ), password ) if passwordChanged then outputChatBox ( "Your password has been changed into " .. password .. ".", source ) else outputChatBox ( "Unknown error.", source ) endend If I type changepassword ***** in my console, I don't even get the message "Unknown error." but the console says: WARNING: main.lua: Access denied @ 'setAccountPassword' - Line: 38 I also have it with addAccount ( ... ) and all the account commands were you need to overwrite the accounts list but I have disabled read only for my accounts.xml. I have tried everything I knew.
[DooD]Heavyair Posted May 15, 2008 Posted May 15, 2008 not sure but U might need to give admin access to the resource the CHANGEPASSWORD function is in open MTAserver\mods\deathmatch\acl.xml then find this and add this hope that helps MTA The gift that keeps on giving cant wait for DP1000 LOL
[DooD]Heavyair Posted May 15, 2008 Posted May 15, 2008 not sure but U might need to give admin access to the resource the CHANGEPASSWORD function is in open MTAserver\mods\deathmatch\acl.xml then find this and add this hope that helps MTA The gift that keeps on giving cant wait for DP1000 LOL
Recommended Posts