Price. Posted June 25, 2015 Share Posted June 25, 2015 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
2013martin1212 Posted June 25, 2015 Share Posted June 25, 2015 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
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