#STZ Posted March 21, 2017 Share Posted March 21, 2017 السلام عليكم ورحمة الله وبركاته سويت 2 كولمن وكل كولمن في Rows واحد حق اسم اللاعب والفلوس المشكلة جه اول رو في كولمن 1 اسمي ثاني رو في كولمن 2 الفلوس مب قدام بعض يعني في نفس السطر المشكلة الثانية لازم اكتب شي في ايديت البحث بعدين احذفه عشان تظهر الجريد ليست Link to comment
Master_MTA Posted March 21, 2017 Share Posted March 21, 2017 20 minutes ago, Abdul KariM said: عليكم السلام اكوادكك اشوفك متحمس لك كم يوم @_@ Link to comment
#STZ Posted March 21, 2017 Author Share Posted March 21, 2017 function putPlayers() guiGridListClear(GRID) for i,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GRID) local row2 = guiGridListAddRow(GRID) guiGridListSetItemText(GRID,row,1,getPlayerName(player),false,false) guiGridListSetItemText(GRID,row2,2,getPlayerMoney(player),false,false) end end setTimer( function( ) guiGridListSetItemText(GRID,row,1,getPlayerName(player),false,false) guiGridListSetItemText(GRID,row2,2,getPlayerMoney(player),false,false) end, 100, 0 ) addEventHandler("onClientGUIChanged",root, function () if ( source == Search_edit ) then local text = string.upper(guiGetText(Search_edit)) if ( text == "" ) then putPlayers() else guiGridListClear(GRID) for i,v in ipairs(getElementsByType("player")) do local name = string.upper(getPlayerName(v)) if string.find(name,text) then playSoundFrontEnd(3) local row = guiGridListAddRow(GRID) local row2 = guiGridListAddRow(GRID) guiGridListSetItemText(GRID,row,1,getPlayerName(v),false,false) guiGridListSetItemText(GRID,row2,2,getPlayerMoney(player),false,false) end end end end end ) @Master_MTA @#BrosS Link to comment
Master_MTA Posted March 21, 2017 Share Posted March 21, 2017 function putPlayers() guiGridListClear(GRID) for i,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GRID) guiGridListSetItemText(GRID,row,1,getPlayerName(player),false,false) guiGridListSetItemText(GRID,row,2,getPlayerMoney(player),false,false) end end addEventHandler("onClientGUIChanged",root, function () if ( source == Search_edit ) then local text = string.upper(guiGetText(Search_edit)) if ( text == "" ) then putPlayers() else guiGridListClear(GRID) for i,v in ipairs(getElementsByType("player")) do local name = string.upper(getPlayerName(v)) if string.find(name,text) then playSoundFrontEnd(3) local row = guiGridListAddRow(GRID) guiGridListSetItemText(GRID,row,1,getPlayerName(v),false,false) guiGridListSetItemText(GRID,row,2,getPlayerMoney(player),false,false) end end end end end ) جرب ورد خبر Link to comment
#STZ Posted March 21, 2017 Author Share Posted March 21, 2017 @Master_MTA تمام اخوي بس لازم اكتب شي في الايديت حق البحث عشان يظهر شي في الجريد ليست Link to comment
N3xT Posted March 22, 2017 Share Posted March 22, 2017 حط مع زر اللوحة حقتك او الكوماند putPlayers() 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