Jump to content

Access Denied "executeCommandHandler"


Recommended Posts

Posted

hi i have a problem when use this function.

function pack ( playerSource, commandName ) 
        setPlayerSkin(playerSource, 280) 
    setPlayerMoney (playerSource, 50000) 
    setPlayerArmor ( playerSource, 20 ) 
end 
  
addCommandHandler ( "pack1", pack ) 
  
function packi2 ( playerSource, commandName ) 
        executeCommandHandler ( "pack1", playerSource ) 
end 
addCommandHandler ( "pack2", packi2 ) 

and display this error in the console.

WARNING: diversion.lua Access denied @ `executeCommandHandler´ line 476.

plz help

bye and srry for my english

Posted

You need to give the resource access to executeCommandHandler in the acl.xml file.

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