JustP Posted June 4, 2019 Share Posted June 4, 2019 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 Link to comment
Hakan Posted June 4, 2019 Share Posted June 4, 2019 local Group1 = ""..tostring(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) break end end end addCommandHandler('setgtext', justA) 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