Maksoud Posted April 1, 2016 Posted April 1, 2016 السلام عليكم كيفكم شباب ؟ بدى كود يخلى الاسماء ما تتكرر بالقريد ليست
Maksoud Posted April 1, 2016 Author Posted April 1, 2016 سويت مود المود عبارة عن لوحة شرطى المفروض يبقى فيها قريد ليست اسماء اللاعبين خليته موجود بس الاسماء تتكرر
iMr.WiFi..! Posted April 1, 2016 Posted April 1, 2016 يعني سويت ايديت ولما يكتب اسم اللاعب مرتين يتكرر الاسم مرتين ؟ بس أتاكد
Ahmed Ly Posted April 1, 2016 Posted April 1, 2016 سويت مود المود عبارة عن لوحة شرطىالمفروض يبقى فيها قريد ليست اسماء اللاعبين خليته موجود بس الاسماء تتكرر guiGridListClear
Maksoud Posted April 1, 2016 Author Posted April 1, 2016 اسمع , انا عندى قريد ليست لاسماء اللاعبين اسمى انا لوحدى متكرر 6 مرات
Adham Posted April 1, 2016 Posted April 1, 2016 addEventHandler("onClientGUIChanged",root, function () if ( source == edit ) then local text = guiGetText(edit) if ( text == "" ) then putAllPlayersInList() else guiGridListClear(grid) for i,v in ipairs(getElementsByType("player")) do local name = getPlayerName(v) if string.find(name,text) then local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,name,false,false) guiGridListSetItemColor(grid,row,1,255,255,0) end end end end end )
Maksoud Posted April 1, 2016 Author Posted April 1, 2016 setTimer ( guiGridListClear, 5000, 1, PlayersGrid ) سويت ذه الاسم صار يظهر لمدة 3 ثوانى و يختفى و ما يظهر تانى
Maksoud Posted April 1, 2016 Author Posted April 1, 2016 function clientsideResourceStart () if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( PlayersGrid ) guiGridListSetItemText ( PlayersGrid, row, column, getPlayerName ( playeritem ), false, false ) setTimer ( guiGridListClear, 5000, 1, PlayersGrid ) end end end addEventHandler ( "onClientResourceStart", getRootElement(), clientsideResourceStart )
iMr.WiFi..! Posted April 1, 2016 Posted April 1, 2016 وظيفة تغيير قيَم القريد لست إلى أسماء اللاعبين .. changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function ' مثآل : wnd = guiCreateWindow ( 100, 100, 400, 400, "Test", false ); -- Create Window grid = guiCreateGridList ( 25, 30, 350, 350, false, wnd ); -- Create Gridlist col = guiGridListAddColumn ( grid, "Players", 0.9 ); -- Create Column changeGridListItemToPlayersName ( grid, col ); -- Set Gridlist Values استعمل هذا الكود من قبل عناد
Maksoud Posted April 2, 2016 Author Posted April 2, 2016 مشكور اخوى ان شاء الله شغال لحد الحين الاسماء ما اتكررت و كله تمام شكرا اخوى واى فاى و شكرا لعناد
a7zan Posted April 2, 2016 Posted April 2, 2016 guiGridListClear استعمل . guiGridListClear وانشالله بتعمل @[L]e3bA ممكن اعرف وش الفرق بين ردك و رد احمد ؟
YourMind Posted April 2, 2016 Posted April 2, 2016 guiGridListClear استعمل . guiGridListClear وانشالله بتعمل @[L]e3bA ممكن اعرف وش الفرق بين ردك و رد احمد ؟ عنده مرض
Ja[B]er[X]Pro Posted April 8, 2016 Posted April 8, 2016 اسف ان رفعت الموضوع لكن لدي طريقة افضل روح عند كود فتح اللوحة بزر وضيف به guiGridListClear()
Ja[B]er[X]Pro Posted April 8, 2016 Posted April 8, 2016 اسف ان رفعت الموضوع لكن لدي طريقة افضل روح عند كود فتح اللوحة بزر وضيف به guiGridListClear()
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