Renkon Posted December 5, 2012 Share Posted December 5, 2012 Is this okay? local vehicleList = { [1] = { name = "Blahblah", price = 133337, [...]}, [2] {blahblah}, [...] } Link to comment
Anderl Posted December 5, 2012 Share Posted December 5, 2012 Just something: as long as indexes are continuous ( 1, 2, 3, 4, 5, 6, ... ) you don't need to write them, they'll be added automatically. Link to comment
Renkon Posted December 5, 2012 Author Share Posted December 5, 2012 Thank you for your piece of advice. Link to comment
Tete omar Posted December 6, 2012 Share Posted December 6, 2012 You can learn tables tutorial here http://lua-users.org/wiki/TablesTutorial btw , i learned tables tutorial from here ^ and i tested the examples with batbot on IRC. 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