MA[S]RIY Posted August 16, 2017 Posted August 16, 2017 السلام عليكم انا مسوي جريد ليست ومسوي كود يجيب اسماء الاعبين بالجريد ليست ومسوي كود لما اكتب اسم لاعب بايديت يبحث عنه بالجريد لاكن الكود م يشتغل addEventHandler ( "onClientGUIChanged", edit1, function ( ) local text = guiGetText ( source ) for row = 1, guiGridListGetRowCount ( grid ) do if ( guiGridListGetItemText ( grid, row, 1 ) == text ) then guiGridListSetSelectedItem ( grid, row, 1 ) end end end ,false ) ^ذا الكود لو ممكن احد يصححه
' A F . Posted August 16, 2017 Posted August 16, 2017 addEventHandler("onClientGUIChanged", root, function () if ( source == search ) then if ( guiGetText ( source ) == "" ) then guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end else guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do if string.find(getPlayerName(v),guiGetText(search)) then local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end end end end ) By @!#NssoR_)
MA[S]RIY Posted August 16, 2017 Author Posted August 16, 2017 38 minutes ago, Default said: addEventHandler("onClientGUIChanged", root, function () if ( source == search ) then if ( guiGetText ( source ) == "" ) then guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end else guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do if string.find(getPlayerName(v),guiGetText(search)) then local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end end end end ) By @!#NssoR_) ذا كود يجيب الاعبين بالجريد + البحث صح ؟ ولا البحث فقط ؟
MA[S]RIY Posted August 16, 2017 Author Posted August 16, 2017 5 hours ago, Default said: البحث فقط . الف الف مشكور اخي
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