Jump to content

Help


Recommended Posts

Posted

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 

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

Which line corresponds to the 1079 in the piece of code posted?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Line 11, sorry for late reply.

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

I would say that "block" is nil, if you do tostring ( block ) it'll surely write "nil".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

The script is working fine, i just get that spam of error in debug

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

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