Lachuks Posted February 14, 2019 Share Posted February 14, 2019 (edited) How to make columns, rows, tabs by looping stuff? e.g. Spoiler local categories = { [1] = "something", [2] = "something2", [3] = "something3", [4] = "something4", [5] = "something5", [6] = "something6", [7] = "something7", } for i, cateName in ipairs(categories) do tab[i] = DGS:dgsCreateTab( cateName, tabCommands2 ) end It says - attempt to index global 'tab' (a nil value) Tried to do the same thing withgui and it worked well I'm idiota.... Had to add tab = {} at the top. Edited February 14, 2019 by Emix 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