Hello! I have a problem. I have wrote this script:
addCommandHandler ( "wajsic",
function (thePlayer)
local accountname = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then
setElementPosition( thePlayer, 1257.8564453125, -775.72027587891, 92.03125 )
end
end
)
Problem is that I get an error:
\script.lua: attempt to concatenate global 'accountname' (a nil value)
What could it be?
Thanks!