Vanlot Posted February 8, 2013 Share Posted February 8, 2013 belehi, 7abit nasna3 gridList ba7thaha editbox, ki nekteb part men esm el player fel editbox mayab9ach felista ken el asemi eli techbah lel text eli mawjoud fel editbox w thanks ahawa el code eli jarebtou.ama el be9i ma3raftouch , Chokran mousba9an addEventHandler("onClientGUIClick",root, function () if (source == lol) then playersList = guiCreateGridList(14, 44, 485, 360, false, test) searchedit = guiCreateEdit(511, 49, 131, 28, "Search for player", false, test) column = guiGridListAddColumn(playersList,"Players",1) end end ) function ple() for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playersList ) guiGridListSetItemText ( playersList, row, 1, getPlayerName ( player ), false, false ) end end setTimer(ple,50,0) Link to comment
iPrestege Posted February 9, 2013 Share Posted February 9, 2013 I see that no one has to help you, if you want me to help, please speak English maybe I can help you. Link to comment
Baseplate Posted February 9, 2013 Share Posted February 9, 2013 I didn't find a way how to fix it so I just left it for others. Link to comment
iPrestege Posted February 9, 2013 Share Posted February 9, 2013 I didn't find a way how to fix it so I just left it for others. Well, you can tell me what he wants? Link to comment
iPrestege Posted February 9, 2013 Share Posted February 9, 2013 -- N'a pas été testé, mais devrait fonctionner! . function Search() guiGridListClear ( playersList ) local text = guiGetText ( source ) if ( text ~= "" ) then for index, player in ipairs (getElementsByType("player")) do if ( string.find ( string.upper ( getPlayerName ( player) ), string.upper ( text ), 1, true ) ) then local row = guiGridListAddRow ( playersList ) guiGridListSetItemText( playersList, row, 1, getPlayerName ( player), false, false ) end end else for index, player in ipairs (getElementsByType("player")) do local row = guiGridListAddRow ( playersList ) guiGridListSetItemText( playersList, row, 1, getPlayerName ( player), false, false ) end end end addEventHandler ( "onClientGUIChanged", Search, searchedit, false ) Link to comment
Sparrow Posted February 10, 2013 Share Posted February 10, 2013 problem solved, I sended him the working code Link to comment
Vanlot Posted February 10, 2013 Author Share Posted February 10, 2013 inoub 3lik m7iris thanks Mr.Pres[T]ege as well Link to comment
iPrestege Posted February 11, 2013 Share Posted February 11, 2013 Parlez-vous français? Bienvenue, mais j'ai une question vous avez utilisé mon script? Ou quoi? Link to comment
Sparrow Posted February 11, 2013 Share Posted February 11, 2013 votre script ne marche pas prestege, il utilite la mienne Link to comment
iPrestege Posted February 11, 2013 Share Posted February 11, 2013 Merci Oui, mais le problème a été résolu à tous . Link to comment
SpriN' Posted February 11, 2013 Share Posted February 11, 2013 7ata men Sparrow wala ya7ki français lol moch 9otlk jebt 5 ? Link to comment
iPrestege Posted February 11, 2013 Share Posted February 11, 2013 Pouvez-vous parler français? Link to comment
S4MuEL Posted March 25, 2013 Share Posted March 25, 2013 @برستيج شكلهه يقصصد string.find مآ إدري الزبدةة , بعطيهه كود بلآوي !! asma3 a sa7bi chouf hedha jarbou ! PlayerListSearch = edit---اسم المكان الي يكتب في الاسم_VERSION PlayerList = list ---اسم اللسته function aClientGUIChanged () if ( source == PlayerListSearch ) then guiGridListClear ( PlayerList ) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( PlayerList, guiGridListAddRow ( PlayerList ), 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 ( PlayerList, guiGridListAddRow ( PlayerList ), 1, getPlayerName ( player ), false, false ) end end end end addEventHandler ( "onClientGUIChanged", root, aClientGUIChanged ) 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