I do not understand why these lines do not work.
Debugscript 3 says:
How? The second argument is aclGetGroup ("Admin"), so why doesn't it work?
function ACLCheck(player, command)
local account = getAccountName(getPlayerAccount(player))
local arena = getElementData(player, "Arena")
if isObjectInACLGroup ( "user." .. account, aclGetGroup("Admin")) then --bugged
return true
end
-------------
end
I tried to output account and tostring(account), BOTH worked. I tried to output "Awesome" if I got the Admin ACL Group, and guess what?
if not aclGetGroup("Admin") then outputChatBox("Awesome")
This worked, so the script does not receive the acl group. WHY?
PD: and yes, the Admin group exists. I even tried with Console group, too.