Jump to content

Need Help


Price.

Recommended Posts

function toggle_police_chief(admin, cmd, account_to_add_or_remove) 
  
    local accName = getAccountName(getPlayerAccount(admin)) 
     
    if not isObjectInACLGroup ("user."..accName, aclGetGroup ("Admin")) and 
        not isObjectInACLGroup ("user."..accName, aclGetGroup ("Moderator")) then return end 

:59: attempt to concatenate local 'accName' (a boolean value)

why is it not working, I've been trying to change it for a long time and can't get it to work, any help?

Link to comment

i am not the best in lua but i think the script is beter in this way

[lua]function toggle_police_chief(admin, cmd, account_to_add_or_remove) 
  
    local accName = getAccountName(getPlayerAccount(admin)) 
    
    if not isObjectInACLGroup ("user."..accName, aclGetGroup ("Admin"))  
       elseif not isObjectInACLGroup ("user."..accName, aclGetGroup ("Moderator")) then return end 

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