-#GoDa Posted June 14, 2017 Share Posted June 14, 2017 (edited) السلام عليكم انا ابي انه يجيب جميع حسابات الاعبين في الوحه الحين افتح الوحه ومايجي شي الدي بق فاضي function refresh ( ) local table_ = { } for _ , v in ipairs ( getElementsByType ( 'player' ) ) do local Account = getPlayerAccount ( v ) if ( not isGuestAccount ( Account ) ) then local Name = getAccountName ( Account ) table [ 'insert' ] ( table_ , Name ) end end end triggerClientEvent ( root , 'setGridList' , root , table_ ) end addEventHandler ( 'onPlayerLogin' , root , refresh ) addEventHandler ( 'onPlayerQuit' , root , refresh ) setTimer ( refresh , 500 , 1 ) Edited June 14, 2017 by -#GoDa Link to comment
iMr.WiFi..! Posted June 14, 2017 Share Posted June 14, 2017 (edited) 2 minutes ago, -#GoDa said: السلام عليكم انا الحين مسوي انه يجيب حسابات جميع الاعبين في الوحه الحين افتح الوحه ومايجي شي الدي بق فاضي function refresh ( ) local table_ = { } for _ , v in ipairs ( getElementsByType ( 'player' ) ) do local Account = getPlayerAccount ( v ) if ( not isGuestAccount ( Account ) ) then local Name = getAccountName ( Account ) table [ 'insert' ] ( table_ , Name ) end end end triggerClientEvent ( root , 'setGridList' , root , table_ ) end addEventHandler ( 'onPlayerLogin' , root , refresh ) addEventHandler ( 'onPlayerQuit' , root , refresh ) setTimer ( refresh , 500 , 1 ) أولاً : 2 minutes ago, -#GoDa said: انا الحين مسوي انه يجيب حسابات جميع الاعبين في الوحه متأكد انك انت الي مسويه ولا غيرك ؟ ثانياً : اطرح كود الاستقبال .. + زي ما قال : 1 minute ago, #BrosS said: عندك زوائد من الاند Edited June 14, 2017 by iMr.WiFi..! Link to comment
-#GoDa Posted June 14, 2017 Author Share Posted June 14, 2017 Just now, iMr.WiFi..! said: أولاً : متأكد انك انت الي مسويه ولا غيرك ؟ ثانياً : اطرح كود الاستقبال .. سوكنيج مسويه معي ... addEvent ( 'setGridList' , true ) addEventHandler ( 'setGridList' , root , function ( table_ ) guiGridListClear ( accNameList ) for _ , v in ipairs ( table_ ) do local Row = guiGridListAddRow ( accNameList ) guiGridListSetItemText ( accNameList , Row , 1 , v , false , false ) end end ) 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