Jump to content

Recommended Posts

ابي مساعده شباب

انا مثل 

حطيت كود الوحة مع كل شي مثل

 

    local key = "F9"
GUIEditor = {
    gridlist = {},
    window = {}
}
GUIEditor.window[1] = guiCreateWindow(436, 96, 358, 465, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.gridlist[1] = guiCreateGridList(9, 31, 308, 417, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)
guiSetVisible (GUIEditor.window[1], false)
bindKey( key, "down",function()
guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) )
showCursor ( guiGetVisible (GUIEditor.window[1]) )
end)
الحين اانا ابي احط 
 
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
                    local Row = guiGridListAddRow ( GridList )
                    guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values
                end;
            end;
        end;
    end;
end;
 
ابي احط ذا الكود حق العبين 
 
وين احطه
 
في الأخير ما يجي مدري ليه
و تحت الكود مباشره ما يجي
 
ابي مساعده

 

 

Edited by salh
Link to comment
31 minutes ago, Oskar. said:

وبعدين اسم الفنكشن مو متعرف

 
changeGridListItemToPlayersName = function
31 minutes ago, Oskar. said:

اللي شايفه حسب كودك 

تحت اكواد اللوحه في اند + قوس زياده احذفهم

 

 
بعدين كل كلامك غلط ترا هو حاط بايند كاي لو تلاحظ :
 
=====
بنسبة لطلب راعي الموضوع :
 
   local key = "F9"
GUIEditor = {
    gridlist = {},
    window = {}
}
GUIEditor.window[1] = guiCreateWindow(436, 96, 358, 465, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.gridlist[1] = guiCreateGridList(9, 31, 308, 417, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)
changeGridListItemToPlayersName(GUIEditor.gridlist[1],1)
guiSetVisible (GUIEditor.window[1], false)
bindKey( key, "down",function()
guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) )
showCursor ( guiGetVisible (GUIEditor.window[1]) )
end)

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
                    local Row = guiGridListAddRow ( GridList )
                    guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values
                end;
            end;
        end;
    end;
end;

 

Edited by iMr.WiFi..!
  • Like 1
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...