Sign in to follow this  
JustP

مشكلة

Recommended Posts

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

Share this post


Link to post
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)

 

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.