Ernis456 Posted January 17, 2011 Share Posted January 17, 2011 Hi, I created with Guieditor GUI that has 5 radio buttons.I creating this for Role Play Server. How to check with button player was sellected when him pres "Continue" button ? GUI LANG: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Window[1] = guiCreateWindow(279,218,426,277,"Role Play Testas",false) GUIEditor_Radio[1] = guiCreateRadioButton(43,68,221,25,"1 - Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[1],"clear-normal") GUIEditor_Radio[2] = guiCreateRadioButton(43,99,165,19,"2- Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[2],"clear-normal") GUIEditor_Radio[3] = guiCreateRadioButton(43,129,184,21,"3- Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[3],"clear-normal") GUIEditor_Radio[4] = guiCreateRadioButton(43,158,200,19,"4- Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[4],"clear-normal") GUIEditor_Radio[5] = guiCreateRadioButton(43,190,210,21,"5- Answer",false,GUIEditor_Window[1]) guiRadioButtonSetSelected(GUIEditor_Radio[5],true) guiSetFont(GUIEditor_Radio[5],"clear-normal") GUIEditor_Button[1] = guiCreateButton(193,243,209,19,"Continue",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(44,27,380,37,"Question",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"clear-normal") How to create function that shows that GUI and how to create e.g. if player selected 3. Answer continue, if not do current function. Link to comment
Castillo Posted January 17, 2011 Share Posted January 17, 2011 https://wiki.multitheftauto.com/wiki/GuiRadioButtonGetSelected 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