local Group1 = ""..getElementData ( resourceRoot, "group1" )..""
local Group2 = ""
Groups = {
"Admin",
"Console",
}
-- by justp
function justA ( thePlayer, commandName, ... )
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
for i, v in ipairs ( Groups ) do
if isObjectInACLGroup ( "user."..accName, aclGetGroup ( v ) ) then
local justp = { ... }
local textt = table.concat ( justp, " " )
setElementData ( resourceRoot, "group1", textt )
outputChatBox(getElementData ( resourceRoot, "group1" ), thePlayer)
exports["guimessages"]:outputServer(thePlayer, "#C38EC7[Clanwar] group1 set to " ..getElementData ( resourceRoot, "group1" ), 255, 255, 0)
end
end
end
addCommandHandler('setgtext', justA)
في مشكلة بـ السطر رقم واحد يقول
attempt to concatenate a boolean value