Baseplate Posted October 29, 2012 Share Posted October 29, 2012 Well, how to make it when you select a radio button, nothing happens except you click on a normak button is if(guiRadioButtonGetSelected(radio)) then elseif (source == Button) then enough or? P.S: I know how to create a button and a radio button Link to comment
Guest Guest4401 Posted October 29, 2012 Share Posted October 29, 2012 You mean you want to check if a radio button is selected or not if a normal button is clicked? If so: addEventHandler("onClientGUIClick",root, function() if source == button then -- check if he clicks the button if guiRadioButtonGetSelected(radiobutton) then -- check if the radio button was selected as well -- do something else -- otherwise: outputChatBox'y u no selekt the radio btn' -- remind him that he forgot to select the radio button. end end end ) Link to comment
Baseplate Posted October 29, 2012 Author Share Posted October 29, 2012 SOLVED! karthik you gotta get the radio button first then the normal button 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