Jump to content

x[مشكله ]x في الوب


Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...