Adham Posted May 27, 2016 Posted May 27, 2016 سلام عليكم لما حطيط الكود دا ما اشتغل مود تبعي outputChatBox("#FFFF00* [RentSysteam]: "..guiGetText (edittag).." , 255, 0, 0, true) انا عاوز يجي الكلام الكتبو باليديت
Ahmed Ly Posted May 27, 2016 Posted May 27, 2016 local text = guiGetText(edittag) outputChatBox("#FFFF00* [RentSysteam]: "..text.."", 255, 0, 0, true)
Adham Posted May 27, 2016 Author Posted May 27, 2016 شكرا لك سوال تاني .. انا عامل 2 شيك بوكس وعاوهم يجيو في القريد لست يعني انا اخترت في الشيك بوكس مثلن ون كارد يجي في القريد لست ون كارد # انا عرفت كيف اعملها علي ايديت يجي في القريد لست
#Soking Posted May 27, 2016 Posted May 27, 2016 outputChatBox("#FFFF00* [RentSysteam]: "..guiGetText (edittag).." ", 255, 0, 0, true) GUIEditor = { RadioButton = {} } local screenW, screenH = guiGetScreenSize() Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) guiWindowSetSizable(Window, false) guiSetVisible(Window,false) GridList = guiCreateGridList(9, 32, 336, 236, false, Window) local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) GUIEditor.RadioButton[1] = guiCreateRadioButton(12, 290, 123, 15, "1 Card", false, Window) GUIEditor.RadioButton[2] = guiCreateRadioButton(154, 290, 123, 15, "STC", false, Window) addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.RadioButton[1] ) or ( source == GUIEditor.RadioButton[2] ) then if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'1 Card',false,false) elseif ( guiRadioButtonGetSelected(GUIEditor.RadioButton[2]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'STC',false,false) end end end ) addCommandHandler('Open', function ( ) guiSetVisible(Window,not guiGetVisible(Window) ) showCursor( guiGetVisible(Window) ) end )
Adham Posted May 28, 2016 Author Posted May 28, 2016 outputChatBox("#FFFF00* [RentSysteam]: "..guiGetText (edittag).." ", 255, 0, 0, true) GUIEditor = { RadioButton = {} } local screenW, screenH = guiGetScreenSize() Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) guiWindowSetSizable(Window, false) guiSetVisible(Window,false) GridList = guiCreateGridList(9, 32, 336, 236, false, Window) local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) GUIEditor.RadioButton[1] = guiCreateRadioButton(12, 290, 123, 15, "1 Card", false, Window) GUIEditor.RadioButton[2] = guiCreateRadioButton(154, 290, 123, 15, "STC", false, Window) addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.RadioButton[1] ) or ( source == GUIEditor.RadioButton[2] ) then if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'1 Card',false,false) elseif ( guiRadioButtonGetSelected(GUIEditor.RadioButton[2]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'STC',false,false) end end end ) addCommandHandler('Open', function ( ) guiSetVisible(Window,not guiGetVisible(Window) ) showCursor( guiGetVisible(Window) ) end ) شكرا لك اخي
Adham Posted May 28, 2016 Author Posted May 28, 2016 طيب تمام انا عاوز لما يحدد علي شي من ال2 شيك بوكس واحده منهم . يجي الحددو من الشيك بوكس مثلن اول شي بوكس كارد التاني STC لو حدد كارد يجي في القريد لست مره واحده فقط مب كذا مره ولازم يضعط علي button مش تيجي علطول
[iMr]-W[i]Fi,.! Posted May 28, 2016 Posted May 28, 2016 طيب تمامانا عاوز لما يحدد علي شي من ال2 شيك بوكس واحده منهم . يجي الحددو من الشيك بوكس مثلن اول شي بوكس كارد التاني STC لو حدد كارد يجي في القريد لست مره واحده فقط مب كذا مره ولازم يضعط علي button مش تيجي علطول والله لو نعطيك الفنكشنات ماتفهم حاجة + انصحك تبدأ تبرمج من جديد طلباتك صعبه بنسبة لك !
#Soking Posted May 28, 2016 Posted May 28, 2016 addEventHandler('onClientGUIClick',Yourbutton, function ( ) if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'1 Card',false,false) elseif ( guiRadioButtonGetSelected(GUIEditor.RadioButton[2]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'STC',false,false) end end , false ) بدل Yourbutton بالزر حقك , + استخدم مثل ماقلت لك الراديو افضل
#Soking Posted May 28, 2016 Posted May 28, 2016 لو تبي تستخدم الشيك بوكس , وتبي تحدد واحد من الاثنين فقط استخدم دي الطريقه الغبيه addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.CheckBox[1] ) then guiCheckBoxSetSelected( GUIEditor.CheckBox[2], false ) guiCheckBoxSetSelected( GUIEditor.CheckBox[1], true ) end if ( source == GUIEditor.CheckBox[2] ) then guiCheckBoxSetSelected( GUIEditor.CheckBox[1], false ) guiCheckBoxSetSelected( GUIEditor.CheckBox[2], true ) end end )
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