MR.Mosa Posted July 10, 2017 Share Posted July 10, 2017 (edited) السلام عليكم شباب بدي اعرف شو المشكلة بهاذا الكود كلينت addEvent( 'getDe',true ) addEventHandler ( 'getDe',root, function ( userName,byNamer ) guiGridListClear ( gridlist1 ) local row = guiGridListAddRow ( gridlist1 ) for _,Name in next,userName do guiGridListSetItemText ( gridlist1,row,1,tostring ( Name ),false,false ); end for _,by in next,byNamer do guiGridListSetItemText ( gridlist1,row,2,tostring ( by ),false,false ); end end ) سيرفر addEvent ( 'DeRefresh',true ); addEventHandler ( 'DeRefresh',root, function ( ) userName = { } byNamer = { } for i,aAcc in ipairs ( getAccounts ( ) ) do if getAccountData (aAcc, "NoDerby") then table.insert ( userName,getAccountName( aAcc )) table.insert ( byNamer,getAccountData (aAcc, "NoDerby")) end end triggerClientEvent ( client,'getDe',client,userName,byNamer) end ) Edited July 10, 2017 by MR.Mosa Link to comment
coNolel Posted July 10, 2017 Share Posted July 10, 2017 16 minutes ago, MR.Mosa said: السلام عليكم شباب بدي اعرف شو المشكلة بهاذا الكود كلينت addEvent( 'getDe',true ) addEventHandler ( 'getDe',root, function ( userName,byNamer ) guiGridListClear ( gridlist1 ) local row = guiGridListAddRow ( gridlist1 ) for _,Name in next,userName do guiGridListSetItemText ( gridlist1,row,1,tostring ( Name ),false,false ); end for _,by in next,byNamer do guiGridListSetItemText ( gridlist1,row,2,tostring ( by ),false,false ); end end ) سيرفر addEvent ( 'DeRefresh',true ); addEventHandler ( 'DeRefresh',root, function ( ) userName = { } byNamer = { } for i,aAcc in ipairs ( getAccounts ( ) ) do if getAccountData (aAcc, "NoDerby") then table.insert ( userName,getAccountName( aAcc )) table.insert ( byNamer,getAccountData (aAcc, "NoDerby")) end end triggerClientEvent ( client,'getDe',client,userName,byNamer) end ) triggerClientEvent ( client,'getDe',client,userName,byNamer) client client ? > source Link to comment
MR.Mosa Posted July 10, 2017 Author Share Posted July 10, 2017 3 hours ago, coNolel said: triggerClientEvent ( client,'getDe',client,userName,byNamer) client client ? > source ماله علاقة #Edit: @N3xT Link to comment
#BrosS Posted July 10, 2017 Share Posted July 10, 2017 1 hour ago, coNolel said: triggerClientEvent ( client,'getDe',client,userName,byNamer) client client ? > source ماتفرق الاثنين صحيح Link to comment
Rockyz Posted July 10, 2017 Share Posted July 10, 2017 1 hour ago, coNolel said: triggerClientEvent ( client,'getDe',client,userName,byNamer) client client ? > source Link to comment
MR.Mosa Posted July 10, 2017 Author Share Posted July 10, 2017 شباب ابي احل المشكلة شباب وش رايكم Link to comment
SycroX Posted July 10, 2017 Share Posted July 10, 2017 1 hour ago, MR.Mosa said: السلام عليكم شباب بدي اعرف شو المشكلة بهاذا الكود كلينت addEvent( 'getDe',true ) addEventHandler ( 'getDe',root, function ( userName,byNamer ) guiGridListClear ( gridlist1 ) local row = guiGridListAddRow ( gridlist1 ) for _,Name in next,userName do guiGridListSetItemText ( gridlist1,row,1,tostring ( Name ),false,false ); end for _,by in next,byNamer do guiGridListSetItemText ( gridlist1,row,2,tostring ( by ),false,false ); end end ) سيرفر addEvent ( 'DeRefresh',true ); addEventHandler ( 'DeRefresh',root, function ( ) userName = { } byNamer = { } for i,aAcc in ipairs ( getAccounts ( ) ) do if getAccountData (aAcc, "NoDerby") then table.insert ( userName,getAccountName( aAcc )) table.insert ( byNamer,getAccountData (aAcc, "NoDerby")) end end triggerClientEvent ( client,'getDe',client,userName,byNamer) end ) الحين الي اشوفو انك مسوي guiGridListAddRow برا اللوب لهيك هيسوي روو واحد فقط ذي اول شي لاحظتو ثاني شي وش تبي تسوي انت مو فاهم كودك من ناحيه كلنت الي فهمتو من كودك انك تبي تجيب الأكونتات الي معها الداتا و تحطها في جدول و تنقلو للكلنت و تحطو بجريد لست معرف اذا فهمي صح بس انا سويت لك علي حسب فهمي addEvent("getDe", true) addEventHandler("getDe", root, function(uTable) guiGridListClear(gridlist1) for _,value in ipairs(uTable) do local row = guiGridListAddRow(gridlist1) guiGridListSetItemText(gridlist1, row, 1, tostring(value["AccountName"]), false, false) guiGridListSetItemText(gridlist1, row, 2, tostring(value["AccountData"]), false, false) end end ) addEvent("DeRefresh", true) addEventHandler("DeRefresh", root, function() uTable = {} for _,account in ipairs(getAccounts()) do if getAccountData(account, "NoDerby") then table["insert"](uTable, {AccountName = getAccountName(account), AccountData = getAccountData(account, "NoDerby")}) end end triggerClientEvent (client, "getDe", client, uTable) end ) 1 Link to comment
MR.Mosa Posted July 10, 2017 Author Share Posted July 10, 2017 (edited) 5 minutes ago, #Skrillex said: الحين الي اشوفو انك مسوي guiGridListAddRow برا اللوب لهيك هيسوي روو واحد فقط ذي اول شي لاحظتو ثاني شي وش تبي تسوي انت مو فاهم كودك من ناحيه كلنت الي فهمتو من كودك انك تبي تجيب الأكونتات الي معها الداتا و تحطها في جدول و تنقلو للكلنت و تحطو بجريد لست معرف اذا فهمي صح بس انا سويت لك علي حسب فهمي addEvent("getDe", true) addEventHandler("getDe", root, function(uTable) guiGridListClear(gridlist1) for _,value in ipairs(uTable) do local row = guiGridListAddRow(gridlist1) guiGridListSetItemText(gridlist1, row, 1, tostring(value["AccountName"]), false, false) guiGridListSetItemText(gridlist1, row, 2, tostring(value["AccountData"]), false, false) end end ) addEvent("DeRefresh", true) addEventHandler("DeRefresh", root, function() uTable = {} for _,account in ipairs(getAccounts()) do if getAccountData(account, "NoDerby") then table["insert"](uTable, {AccountName = getAccountName(account), AccountData = getAccountData(account, "NoDerby")}) end end triggerClientEvent (client, "getDe", client, uTable) end ) مشكور ياقلبي الي بسويه لوحة حظر الاعبين من الديربي عن طريق الدتا وبحفظ اسم الي صك الاعب الدتا في الدتا هههههه Edited July 10, 2017 by MR.Mosa 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