Jump to content

طلب مساعده


Recommended Posts

جربهـ ورد لي خبر !

function table.random ( theTable )
    return theTable[math.random ( #theTable )]
end

local aRandomS = {
	"True",
	"False"
}

addEventHandler ("onClientGUIClick",root,
	function ( )
		if ( source == aCheckBox ) then -- Check Box Name !
			if ( guiCheckBoxGetSelected ( aCheckBox ) == true ) then 
				local aRandom = table.random ( aRandomS )
				if ( aRandom == "True" ) then
					guiSetVisible ( aEditBox , true ) -- EditBox Name
			elseif ( aRandom == "False" ) then 
					guiSetVisible ( aEditBox , false ) -- EditBox Name
				end
			end
		end
	end
)

 

Link to comment
23 hours ago, #_iMr.[E]coo said:

جربهـ ورد لي خبر !


function table.random ( theTable )
    return theTable[math.random ( #theTable )]
end

local aRandomS = {
	"True",
	"False"
}

addEventHandler ("onClientGUIClick",root,
	function ( )
		if ( source == aCheckBox ) then -- Check Box Name !
			if ( guiCheckBoxGetSelected ( aCheckBox ) == true ) then 
				local aRandom = table.random ( aRandomS )
				if ( aRandom == "True" ) then
					guiSetVisible ( aEditBox , true ) -- EditBox Name
			elseif ( aRandom == "False" ) then 
					guiSetVisible ( aEditBox , false ) -- EditBox Name
				end
			end
		end
	end
)

 

  1. if ( guiCheckBoxGetSelected ( aCheckBox ) == true ) then
  2. ما يحتاج تسويها بالطريقه ذي

if guiCheckBoxGetSelected ( aCheckBox ) then

تكفي

Link to comment

ممكن يسوي 

تحقق اذا الشيك بوكس ترو

يظهر ايديت

واذا الشيك بوكس false

يسوي يختفي الايديت

guiSetVisible
guiCheckBoxGetSelected

 

Edited by Deativated
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...