AboShanab Posted April 20, 2013 Share Posted April 20, 2013 (edited) السسلام عليككم ورحمة الله وبرككاته اخباركم شباب ؟؟ عسساكم بخير .. اليوم محتاج كود الـ Search بحث عن الاعب في الـ Grid List شباب لاحد يجي ويعطيني الايفنت وهيك طلبتكم ابيه جاهز عشان اتعلم اسوي مثله وهيك .. اطيب تحيةة .. ابو شنب .. Edited April 20, 2013 by Guest Link to comment
PaiN^ Posted April 20, 2013 Share Posted April 20, 2013 في حآل قام عضو بـ طلب كود ..لآ يسمح لأي عضو بـ طرح الوظائف جاهزة إلا بعد محاولة صاحب الطلب أو عجزه عن صناعة الوظيفة 'onClientGUIChanged' guiGridListClear for -- loop سوي getElementsByType getPlayerName string.find guiGridListAddRow guiGridListSetItemText Link to comment
AboShanab Posted April 20, 2013 Author Share Posted April 20, 2013 يسسلمو ع المرور اللي قدرت اسويه .. function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end end end end Link to comment
فاّرس Posted April 20, 2013 Share Posted April 20, 2013 ^الحين هو معطيك الوظآئف وما سويتها كلها ؟ وبعدين لو جاك جاهز ما راح تطالع فيه اصلا على طول نسخ لصق , وعنآد حاط قانون , انت حاول , + الادمنيه موجوده رح شوفها Link to comment
iPrestege Posted April 20, 2013 Share Posted April 20, 2013 يسسلمو ع المرور اللي قدرت اسويه .. function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end end end end قلت لي لك؟ Link to comment
AboShanab Posted April 20, 2013 Author Share Posted April 20, 2013 وشو ما فهمت لك بريستيج .. اظن الكود حقي فيه خرابات ممكن تصلحها ؟ او تسوي كود ثاني Link to comment
iPrestege Posted April 20, 2013 Share Posted April 20, 2013 وشو ما فهمت لك بريستيج .. اظن الكود حقي فيه خرابات ممكن تصلحها ؟ او تسوي كود ثاني الكود منتوف من الادمنية وفية فنكشن ناقص : guiGridListSetItemPlayerName دورة وحطة ^ وبيشتغل Link to comment
AboShanab Posted April 20, 2013 Author Share Posted April 20, 2013 لم اجدهه ممكن تضبطه لي ؟؟ تراني عججزت وربي Link to comment
|Mr|-Talal07-| Posted April 20, 2013 Share Posted April 20, 2013 لم اجدهه ممكن تضبطه لي ؟؟ تراني عججزت وربي guiGridListSetItemText Link to comment
AboShanab Posted April 20, 2013 Author Share Posted April 20, 2013 function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) local column = guiGridListAddColumn(GUIEditor.gridlist[2],"Players List ...", 1) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end end end end هيك مضبوط ؟؟ Link to comment
|Mr|-Talal07-| Posted April 22, 2013 Share Posted April 22, 2013 function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) local column = guiGridListAddColumn(GUIEditor.gridlist[2],"Players List ...", 1) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end 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