#Mr.JinN[8]eR_ Posted January 12, 2015 Share Posted January 12, 2015 # آلسسلأم عليكم ورحمهةة آلله وبركآتهةة آخبآركم شباب عسآكم طيبين # آليوم بغيت كودد ضروري وآلله #EditBox جآ بالـ Row لاهنتم آبي كود لآحد حدد ع آلـ يآليت آلي يقدر يسآعدني يسآعدني ولآ يطنش #< آلسلأم خير آلختام ># وآلسسلأم عليكم ورحمهةة آلله وبركآتهةة # Link to comment
|Mr|-Talal07-| Posted January 12, 2015 Share Posted January 12, 2015 editbox يجي في الـ Row قصدك الكلام الي في الـ Link to comment
#Mr.JinN[8]eR_ Posted January 12, 2015 Author Share Posted January 12, 2015 editbox يجي في الـ Row قصدك الكلام الي في الـ Rowلآ آقصد يعني لو آحد حدد ع آلـ editboxجآ بالـ ولا شآل التحديد يروح آلكلام Link to comment
|Mr|-Talal07-| Posted January 12, 2015 Share Posted January 12, 2015 (edited) gridlist = guiCreateGridList(...) edit = guiCreateEdit(...) addEventHandler("onClientGUIClick",gridlist, function () local sel = guiGridListGetSelectedItem(gridlist) if sel ~= -1 then local text = guiGridListGetItemText(gridlist,sel,0) guiSetText(edit,text) else guiSetText(edit,"") end end ,false) Edited January 13, 2015 by Guest Link to comment
#Mr.JinN[8]eR_ Posted January 12, 2015 Author Share Posted January 12, 2015 gridlist = guiCreateGridList(...) edit = guiCreateEdit(...) addEventHandler("onClientGUIClick",gridlist, function () if guiGridListGetSelectedItem(gridlist) ~= -1 then local text = guiGridListGetItemText(gridlist,sel,0) guiSetText(edit,text) else guiSetText(edit,"") end end ,false) ------ -- آخوي طلال .. كودكك مآضبط :\ آسم آلمود = Clon2 آلديبق ( debugscript ) = WARNING: Clon2/Client2.lua:10: Bad argument @ 'guiSetText' [Expected string at argument 2, got boolean] WARNING: Clon2/Client2.lua:9: Bad argument @ 'guiGridListitemText' [Expected number at argument 2, got nil] --------------------- ملف آلكلينت 2 gridlist = GUIEditor.gridlist[1] edit = GUIEditor.edit[1] addEventHandler("onClientGUIClick",gridlist, function () if guiGridListGetSelectedItem(gridlist) ~= -1 then local text = guiGridListGetItemText(gridlist,sel,0) guiSetText(edit,text) else guiSetText(edit,"") end end ,false) --------------------- addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == GUIEditor.button[1] ) then local text = guiGetText ( GUIEditor.edit[1] ) setClipboard( text ) end end ) Link to comment
</Mr.Tn6eL> Posted January 12, 2015 Share Posted January 12, 2015 gridlist = guiCreateGridList(...) edit = guiCreateEdit(...) addEventHandler("onClientGUIClick",gridlist, function () if guiGridListGetSelectedItem(gridlist) ~= -1 then local text = guiGridListGetItemText(gridlist,sel,0) guiSetText(edit,text) else guiSetText(edit,"") end end ,false) sel غير معرف Link to comment
Mr.R Posted January 12, 2015 Share Posted January 12, 2015 gridlist = guiCreateGridList(...) edit = guiCreateEdit(...) addEventHandler("onClientGUIClick",gridlist, function () if guiGridListGetSelectedItem(gridlist) ~= -1 then local text = guiGridListGetItemText(gridlist,sel,0) guiSetText(edit,text) else guiSetText(edit,"") end end ,false) !!!! سطر 7 sel مو معرفه مع الاند false وممكن تقولي ليه حطيت sell ورقم 0 جنب Link to comment
#Mr.JinN[8]eR_ Posted January 13, 2015 Author Share Posted January 13, 2015 جرب الحين وش آجرب "-___- Link to comment
Mr.R Posted January 13, 2015 Share Posted January 13, 2015 جرب الحين مارديت علي ياكنق -_-" Link to comment
AboShanab Posted January 13, 2015 Share Posted January 13, 2015 gridlist = guiCreateGridList(...) edit = guiCreateEdit(...) addEventHandler("onClientGUIClick",gridlist, function () local sel = guiGridListGetSelectedItem(gridlist) if sel ~= -1 then local text = guiGridListGetItemText(gridlist,sel,0) guiSetText(edit,text) else guiSetText(edit,"") end end ,false) جرب كوده عدله لك Link to comment
#Mr.JinN[8]eR_ Posted January 13, 2015 Author Share Posted January 13, 2015 (edited) gridlist = guiCreateGridList(...) edit = guiCreateEdit(...) addEventHandler("onClientGUIClick",gridlist, function () local sel = guiGridListGetSelectedItem(gridlist) if sel ~= -1 then local text = guiGridListGetItemText(gridlist,sel,0) guiSetText(edit,text) else guiSetText(edit,"") end end ,false) جرب كوده عدله لك ------------- مآضبط آلكود =( Edited January 13, 2015 by Guest Link to comment
#Mr.JinN[8]eR_ Posted January 13, 2015 Author Share Posted January 13, 2015 اطرح كودك كآمل مآبيه يتنشر , آلرجاء آلتواصل معي على سكآيب وآوريك آلـ كود كآمل : live:hampp3001 Link to comment
Mr.R Posted January 13, 2015 Share Posted January 13, 2015 الكود شغال , الخطأ من عندك =) Link to comment
#Mr.JinN[8]eR_ Posted January 13, 2015 Author Share Posted January 13, 2015 تـم آلافآدهةة من آلاخ # لحن وشكرا لمن حآول مسآعدتي <3 آلرجاء آغلأق آلموضوع Link to comment
# L 7 N Posted January 13, 2015 Share Posted January 13, 2015 سويت للاخ جدول يضيف فيها الكلمات الي يبي وبالنسبة للكود حق طلال فيه غلط بسيط وتم تعديلة .. هذا الشكل النهائي للكود addEventHandler("onClientGUIClick", resourceRoot, function() if source == GUIEditor.gridlist[1] then if guiGridListGetSelectedItem (GUIEditor.gridlist[1]) ~= -1 then local text = guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) guiSetText(GUIEditor.edit[1],text) else guiSetText(GUIEditor.edit[1],"") end end end) 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