salh Posted June 25, 2017 Share Posted June 25, 2017 (edited) ابي مساعده شباب انا مثل حطيت كود الوحة مع كل شي مثل 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 June 25, 2017 by salh Link to comment
#BrosS Posted June 26, 2017 Share Posted June 26, 2017 لا تحط اكثر من موضوع + استعمل التاق عشين تحط الاكواد ما شايف شي Link to comment
#\_oskar_/# Posted June 26, 2017 Share Posted June 26, 2017 اللي شايفه حسب كودك تحت اكواد اللوحه في اند + قوس زياده احذفهم وبعدين اسم الفنكشن مو متعرف Link to comment
iMr.WiFi..! Posted June 26, 2017 Share Posted June 26, 2017 (edited) 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 June 26, 2017 by iMr.WiFi..! 1 Link to comment
Abdul KariM Posted June 26, 2017 Share Posted June 26, 2017 @iMr.WiFi..! حط الوظيفة فوق 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