-.Paradox.- Posted April 1, 2014 Share Posted April 1, 2014 (edited) Hello guys can somebody see what's wrong here? I'm trying to fill the gridlist with teams, no errors Solved Edited April 1, 2014 by Guest Link to comment
Booo Posted April 1, 2014 Share Posted April 1, 2014 Hello guys can somebody see what's wrong here? I'm trying to fill the gridlist with teams, no errors in debug GUIEditor.gridlist[2] = guiCreateGridList(12, 27, 142, 174, false, GUIEditor.window[2]) local columns = guiGridListAddColumn(GUIEditor.gridlist[2], "Teams", 0.9) if ( columns ) then --If the column has been created, fill it with teams for _,t in ipairs(getElementsByType("team"))do local row = guiGridListAddRow(GUIEditor.gridlist[2]) local teamName = getTeamName(t) guiGridListSetItemText(GUIEditor.gridlist[2],row,column,teamName,false,false) end end try this ; GUIEditor.gridlist[2] = guiCreateGridList(12, 27, 142, 174, false, GUIEditor.window[2]) local columns = guiGridListAddColumn(GUIEditor.gridlist[2], "Teams", 0.9) for _,t in ipairs(getElementsByType("team"))do guiGridListSetItemText(GUIEditor.gridlist[2],guiGridListAddRow(GUIEditor.gridlist[2]),1,getTeamName(t),false,false) end *if not work copy all your code Link to comment
-.Paradox.- Posted April 1, 2014 Author Share Posted April 1, 2014 (edited) Not working, btw here is a part of the code Solved Edited April 1, 2014 by Guest Link to comment
WhoAmI Posted April 1, 2014 Share Posted April 1, 2014 guiGridListSetItemText(GUIEditor.gridlist[2],row,columns,teamName,false,false) Change 11th lane to it. Link to comment
-.Paradox.- Posted April 1, 2014 Author Share Posted April 1, 2014 Thanks i forgot the "s" in column 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