VECTOR_98 Posted July 14, 2012 Share Posted July 14, 2012 hi guys i make new table but i need anyone explain for me How to add number to table automatically? local MyTable = { [5] = 1, Each time more than 5 [10] = 2, [15] = 3, [20] = 4, [25] = 5, [30] = 6, [35] = 7, [40] = 8, [45] = 9, here all numbe until [1005] = 200 } sory guys I am new here I hope anyone help me Thanks --- this table i use for my script local MyTable = { [5] = 1, [10] = 2, [15] = 3, [20] = 4, [25] = 5, [30] = 6, [35] = 7, [40] = 8, [45] = 9, } Link to comment
Guest Guest4401 Posted July 14, 2012 Share Posted July 14, 2012 n = 0 t = {} repeat n = n + 1 t[n*5] = n until n*5 >= 1005 Link to comment
VECTOR_98 Posted July 14, 2012 Author Share Posted July 14, 2012 n = 0 t = {} repeat n = n + 1 t[n*5] = n until n*5 >= 1005 thank so much You are the best programmer 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