GtaSa-Dz Posted February 26, 2014 Share Posted February 26, 2014 شباب كيف احط كل لاعبين سيرفر بل قريد ليست ؟؟ وطلب ثاني كيف اخلي بل قريد ليست عدد الي فاتحين لوحه ؟ Link to comment
al-Kobra Posted February 26, 2014 Share Posted February 26, 2014 وظيفة تغيير قيَم القريد لست إلى أسماء اللاعبين .. 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 يعني اول كود حق عناد ,, خله في بداية كودك ,, بعدين ضيف هذا تحت كود النافذة changeGridListItemToPlayersName ( GridList Name, Column Name ) Link to comment
Recommended Posts