Jump to content

ACL problem


Drakath

Recommended Posts

It says that it expected ACL at argument 1.

It outputs "got" and "NOT". What's the problem? I used an example from wiki but it doesn't work.

function func(thePlayer) 
  
local group = aclGetGroup("CustromACL") 
if group then 
   outputChatBox("got", thePlayer) 
end 
   local bool = aclRemoveRight(group,"command.kick") 
   aclReload() 
   if bool then 
   outputChatBox("removed", thePlayer) 
   else 
   outputChatBox("NOT", thePlayer) 
   end 
    
end 
addCommandHandler("remv", func) 

Link to comment

Maybe it can only remove it from the ACL group? Stuff like user.lalala and I want to remove an actual right which is in ACL that just belongs to this group, however that does not explain why it gives me an error that it expected ACL in the first argument.

Link to comment

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