Jump to content

القريد ليست


3ssol

Recommended Posts

GUIEditor_Grid[1] = guiCreateGridList(0,21,169,427,false,GUIEditor_Tab[2]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
changeGridListItemToPlayersName = function ( GridList, Column ) 
    if GridList and Column then  
        if getElementType ( GridList ) == "gui-gridlist" then  
            if guiGridListClear ( GridList ) then 
                for i, v in next, getElementsByType ( "player" ) do  
                    guiGridListSetItemText ( GridList, guiGridListAddRow ( GridList ), Column, getPlayerName ( v ), false, false ); 
                end; 
            end; 
        end; 
    end; 
end; 
guiGridListAddColumn(GUIEditor_Grid[1],"Player  ",0.9) 

سويت كذا بس القريد ليست ماتغير فيه شي وين الخطا ؟

Link to comment
GUIEditor_Grid[1] = guiCreateGridList(0,21,169,427,false,GUIEditor_Tab[2]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
changeGridListItemToPlayersName = function ( GridList, Column ) 
    if GridList and Column then  
        if getElementType ( GridList ) == "gui-gridlist" then  
            if guiGridListClear ( GridList ) then 
                for i, v in next, getElementsByType ( "player" ) do  
                    guiGridListSetItemText ( GridList, guiGridListAddRow ( GridList ), Column, getPlayerName ( v ), false, false ); 
                end; 
            end; 
        end; 
    end; 
end; 
guiGridListAddColumn(GUIEditor_Grid[1],"Player  ",0.9) 

سويت كذا بس القريد ليست ماتغير فيه شي وين الخطا ؟

اولا

  
guiCreateGridList  
guiGridListAddColumn 
  

بعدين

changeGridListItemToPlayersName ( grid, col ); 

مثال

  
wnd = guiCreateWindow ( 100, 100, 400, 400, "Test", false ); -- اضافة نافذه  
grid = guiCreateGridList ( 25, 30, 350, 350, false, wnd ); -- اضافه قريد 
col = guiGridListAddColumn ( grid, "Players", 0.9 ); -- اضافه عمود 
changeGridListItemToPlayersName ( grid, col ); -- ربط القريد ب العمود 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...