iMr ~ MnHmAr Posted December 9, 2016 Share Posted December 9, 2016 addEventHandler("onClientGUIChanged", root, function () guiGridListClear(GUIEditor.gridlist[1]) if ( source == GUIEditor.edit[3] ) then Accs = guiGetText (GUIEditor.edit[3]) if ( Accs == "" ) then for k,v in ipairs(Accounts) do Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, aAccount, false, false ) end else guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs(Accounts) do if string.find(v,guiGetText(GUIEditor.edit[3])) then local Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,1,v,false,false) end end end end end debugscript 3 : ERROR : Account \c.lua:102:bad argument #1 to 'ipairs' (table exepected , got nil ) وش المشكله ؟ Link to comment
#BrosS Posted December 9, 2016 Share Posted December 9, 2016 Accounts غير معرفة سوي جدول يجيب حسابات اللاعبين Link to comment
iMr ~ MnHmAr Posted December 9, 2016 Author Share Posted December 9, 2016 Just now, #BrosS said: Accounts غير معرفة سوي جدول يجيب حسابات اللاعبين يا الغالي معرفه لكن الكود هذا الي فيه مشكله addEvent("Acconts",true ) addEventHandler("Acconts",root, function ( T ) guiGridListClear(GUIEditor.gridlist[1]) for i, aAccount in ipairs ( T ) do Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, aAccount, false, false ) end Accounts = T end ) Link to comment
#STZ Posted December 9, 2016 Share Posted December 9, 2016 local Accounts = getAccounts () 1 Link to comment
N3xT Posted December 10, 2016 Share Posted December 10, 2016 الخطأ يقول أن القيمة فارغة تأكد هل التريقر حق الجدول وصل الكلنت ولا لا أساساً, وتأكد من القيمة أنها ماهي فارغة Link to comment
iMr ~ MnHmAr Posted December 10, 2016 Author Share Posted December 10, 2016 خلاص تم حليت المشكله مثل ماقلت يانكست طلع من متغير 1 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