-.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 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.
Castillo Posted March 23, 2014 Posted March 23, 2014 Which line corresponds to the 1079 in the piece of code posted? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
-.Paradox.- Posted March 23, 2014 Author Posted March 23, 2014 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.
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". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
-.Paradox.- Posted March 23, 2014 Author Posted March 23, 2014 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.
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