~Mr.Hassan Posted November 21, 2017 Share Posted November 21, 2017 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
kasya85 Posted November 22, 2017 Share Posted November 22, 2017 (edited) 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 November 22, 2017 by kasya85 Link to comment
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