Jump to content

problem in code


~Mr.Hassan

Recommended Posts


Hello. What is the problem with this code, its not working what is the problem?

debugscript3 = Bad Argument

        GridList = GUIEditor.window[1] 
        Button = GUIEditor.button[1]
  
local body = {"body1", "body2"} 
     for i,Value in ipairs( body ) do
     local Row = guiGridListAddRow( GUIEditor.gridlist[1] )
     guiGridListAddRow ( GUIEditor.gridlist[1], Row, body, false, false )
     guiGridListSetItemData ( GUIEditor.gridlist[1], Row, body )
end 

 

Link to comment

try this

 

local body = {"body1", "body2"} 
for _,Value in ipairs( body ) do
     local Row = guiGridListAddRow( GUIEditor.gridlist[1] )
     guiGridListAddRow ( GUIEditor.gridlist[1], Row, Value )
     guiGridListSetItemData ( GUIEditor.gridlist[1], Row, Value )
end 


Edited by kasya85
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...