Jump to content

Help


Recommended Posts

Hello, guys i have this error in debug when i run my script, i cant post it all but here is the important part, and the error i get

WARNING: UserPanel\client.lua:1079: Bad argument @ 'guiGridListSetItemText' [Expected string at argument 4,got boolean]

Client;

local root = xmlLoadFile("anims.xml") 
  if ( root ) then       
        for i,group in ipairs(xmlNodeGetChildren( root ) ) do 
            local row = guiGridListAddRow( AnimAllGrid ) 
            local block = xmlNodeGetAttribute( group, "name" ) 
            guiGridListSetItemText( AnimAllGrid, row, 1, block, true, false )            
            for i,anim in ipairs( xmlNodeGetChildren( group ) ) do 
                row = guiGridListAddRow( AnimAllGrid ) 
                name = xmlNodeGetAttribute( anim, "name" ) 
                guiGridListSetItemText( AnimAllGrid, row, 1, name, false, false )    
                guiGridListSetItemText( AnimAllGrid, row, 2, block, false, false )   
                guiGridListAutoSizeColumn( AnimAllGrid, AnimAllAnimCol ) 
        guiGridListAutoSizeColumn( AnimAllGrid, AnimAllBlockCol ) 
            end 
        end  
        xmlUnloadFile( root ) 
    end 
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...