-.Paradox.- Posted March 23, 2014 Posted March 23, 2014 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
Castillo Posted March 23, 2014 Posted March 23, 2014 Which line corresponds to the 1079 in the piece of code posted?
Castillo Posted March 23, 2014 Posted March 23, 2014 I would say that "block" is nil, if you do tostring ( block ) it'll surely write "nil".
-.Paradox.- Posted March 23, 2014 Author Posted March 23, 2014 The script is working fine, i just get that spam of error in debug
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