Jw8. Posted September 6, 2017 Share Posted September 6, 2017 ألسلام عليكم أبي الكومبو بوكس يبين اسماء الاعبين بسيرفر وهأذا طلبي Link to comment
MR.StoRm Posted September 6, 2017 Share Posted September 6, 2017 39 minutes ago, DmAr511 said: ألسلام عليكم أبي الكومبو بوكس يبين اسماء الاعبين بسيرفر وهأذا طلبي يعني إذا ضغط عالكومبو بوكس يبين اسماء اللاعبين ؟ Link to comment
fu.kyou Posted September 6, 2017 Share Posted September 6, 2017 تفضل هاد local PlayerComboBox = guiCreateComboBox ( 100, 100, 200,400, "Player Names", false ) for i, p in ipairs ( getElementsByType ( "player" ) ) do guiComboBoxAddItem ( PlayerComboBox, getPlayerName ( p ) ) end Link to comment
Jw8. Posted September 6, 2017 Author Share Posted September 6, 2017 كود خطأ 11 minutes ago, Amr_Mohamed said: تفضل هاد local PlayerComboBox = guiCreateComboBox ( 100, 100, 200,400, "Player Names", false ) for i, p in ipairs ( getElementsByType ( "player" ) ) do guiComboBoxAddItem ( PlayerComboBox, getPlayerName ( p ) ) end Link to comment
fu.kyou Posted September 6, 2017 Share Posted September 6, 2017 ويش المشكله انا مجربو بنفسي ؟ Link to comment
Jw8. Posted September 6, 2017 Author Share Posted September 6, 2017 Just now, Amr_Mohamed said: ويش المشكله انا مجربو بنفسي ؟ بس اسمي مو مبين Link to comment
fu.kyou Posted September 6, 2017 Share Posted September 6, 2017 جرب local PlayerComboBox = guiCreateComboBox ( 100, 100, 200,400, "Player Names", false ) function ref () guiComboBoxClear ( PlayerComboBox ) for i, p in ipairs ( getElementsByType ( "player" ) ) do guiComboBoxAddItem ( PlayerComboBox, getPlayerName ( p ) ) end end ref () addEventHandler("onClientPlayerJoin", getRootElement(), ref) addEventHandler( "onClientPlayerQuit", getRootElement(), ref) ويش الخبار الكود يعمل و لا Link to comment
Doffy Posted September 6, 2017 Share Posted September 6, 2017 (edited) 22 hours ago, Amr_Mohamed said: جرب local PlayerComboBox = guiCreateComboBox ( 100, 100, 200,400, "Player Names", false ) function ref () guiComboBoxClear ( PlayerComboBox ) for i, p in ipairs ( getElementsByType ( "player" ) ) do guiComboBoxAddItem ( PlayerComboBox, getPlayerName ( p ) ) end end ref () addEventHandler("onClientPlayerJoin", getRootElement(), ref) addEventHandler( "onClientPlayerQuit", getRootElement(), ref) ويش الخبار الكود يعمل و لا تعديل بسيط function ref () guiComboBoxClear ( PlayerComboBox ) for i, p in ipairs ( getElementsByType ( "player" ) ) do guiComboBoxAddItem ( PlayerComboBox , getPlayerName ( p ) ) end end ref () addEventHandler("onClientPlayerJoin", getRootElement(), ref) addEventHandler("onClientResourceStart", getRootElement(), ref) addEventHandler( "onClientPlayerQuit", getRootElement(), ref) addEventHandler("onClientPlayerChangeNick", getRootElement(), ref) Edited September 6, 2017 by #Himoo Link to comment
+Source|> Posted September 6, 2017 Share Posted September 6, 2017 4 hours ago, #Himoo said: تعديل بسيط function ref () guiComboBoxClear ( PlayerComboBox ) for i, p in ipairs ( getElementsByType ( "player" ) ) do guiComboBoxAddItem ( PlayerComboBox , getPlayerName ( p ) ) end end ref () addEventHandler("onClientPlayerJoin", getRootElement(), ref) addEventHandler("onClientResourceStart", getRootElement(), ref) addEventHandler( "onClientPlayerQuit", getRootElement(), ref) addEventHandler("onClientPlayerChangeNick", getRootElement(), ref) function ref () guiComboBoxClear ( PlayerComboBox ) for i, p in ipairs ( getElementsByType ( "player" ) ) do local Add = guiComboBoxAddItem ( PlayerComboBox ) guiComboBoxSetItemText ( PlayerComboBox, Add, getPlayerName ( p ) ) -- اعتقد لازم هاذي end end ref () addEventHandler("onClientPlayerJoin", getRootElement(), ref) addEventHandler("onClientResourceStart", getRootElement(), ref) addEventHandler( "onClientPlayerQuit", getRootElement(), ref) addEventHandler("onClientPlayerChangeNick", getRootElement(), ref) اعتقد صح | غير مجرب Link to comment
Doffy Posted September 7, 2017 Share Posted September 7, 2017 On 9/6/2017 at 16:06, Source|> said: function ref () guiComboBoxClear ( PlayerComboBox ) for i, p in ipairs ( getElementsByType ( "player" ) ) do local Add = guiComboBoxAddItem ( PlayerComboBox ) guiComboBoxSetItemText ( PlayerComboBox, Add, getPlayerName ( p ) ) -- اعتقد لازم هاذي end end ref () addEventHandler("onClientPlayerJoin", getRootElement(), ref) addEventHandler("onClientResourceStart", getRootElement(), ref) addEventHandler( "onClientPlayerQuit", getRootElement(), ref) addEventHandler("onClientPlayerChangeNick", getRootElement(), ref) اعتقد صح | غير مجرب الي فوق شغال هذا تخبيص 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