فتى تبوك Posted December 24, 2012 Share Posted December 24, 2012 السلام عليكم ورحمة الله وبركاته مساكم الله بالخير يالربع ياشباب ذا الكود فيه تعليق مو صاحي setTimer( function() playerList = guiCreateGridList(11,27,131,355, false, GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(GUIEditor_Window[1]) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("addEventHandler", playerList, onClickPlayerName) end end ,4000,0) Link to comment
abu5lf Posted December 24, 2012 Share Posted December 24, 2012 السلام عليكم ورحمة الله وبركاتهمساكم الله بالخير يالربع ياشباب ذا الكود فيه تعليق مو صاحي setTimer( function() playerList = guiCreateGridList(11,27,131,355, false, GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(GUIEditor_Window[1]) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("addEventHandler", playerList, onClickPlayerName) end end ,4000,0) الكود يسوي قريد لست كل اربع ثواني !! حاط تايمر وتقول تعليق مهب صآحي استخدم احداث عشان تحديث القريد لست Link to comment
فتى تبوك Posted December 24, 2012 Author Share Posted December 24, 2012 السلام عليكم ورحمة الله وبركاتهمساكم الله بالخير يالربع ياشباب ذا الكود فيه تعليق مو صاحي setTimer( function() playerList = guiCreateGridList(11,27,131,355, false, GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(GUIEditor_Window[1]) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("addEventHandler", playerList, onClickPlayerName) end end ,4000,0) حاط تايمر وتقول تعليق مهب صآحي استخدم احداث عشان تحديث القريد لست مافهمتك؟ Link to comment
فتى تبوك Posted December 24, 2012 Author Share Posted December 24, 2012 setTimer( ) يعني شل المود كامل ماشتغل Link to comment
abu5lf Posted December 24, 2012 Share Posted December 24, 2012 setTimer( ) يعني شل المود كامل ماشتغل ورني الكود كامل Link to comment
فتى تبوك Posted December 24, 2012 Author Share Posted December 24, 2012 setTimer( ) يعني شل المود كامل ماشتغل ورني الكود كامل عانه فوق Link to comment
abu5lf Posted December 24, 2012 Share Posted December 24, 2012 .. لأنهه سبب الاق setTimer طيب انا قايلك شل Link to comment
فتى تبوك Posted December 24, 2012 Author Share Posted December 24, 2012 ..لأنهه سبب الاق setTimer طيب انا قايلك شل شلتها وماشتغل المود كامل يابعد حيي Link to comment
abu5lf Posted December 24, 2012 Share Posted December 24, 2012 ..لأنهه سبب الاق setTimer طيب انا قايلك شل شلتها وماشتغل المود كامل يابعد حيي طيب ورني الكود بعد ماشلتها Link to comment
3NAD Posted December 24, 2012 Share Posted December 24, 2012 -- Try This playerList = guiCreateGridList ( 11,27,131,355, false, GUIEditor_Window[1] ) guiGridListSetSelectionMode ( playerList, 2 ) cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) setTimer ( function ( ) guiGridListClear ( playerList ) if guiGetVisible ( GUIEditor_Window[1] ) then for _, name in ipairs ( getElementsByType("player") ) do local rw = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, rw, cl, getPlayerName ( name ), false, false ) end end end , 4000, 0 ) -- addEventHandler("addEventHandler", playerList, onClickPlayerName) -- ذا حطه تحت وظيفته =/ إذا ماضبط أطرح كود فتح النافذة 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