miguel360 Posted March 29, 2014 Share Posted March 29, 2014 For example i have this code local cars = {{579,60000},{400,60000},{404,28000},{489,65000}} then is it possible to get the first number from the first pair and if I press a button or something it gets the first number from the second pair and so on? Link to comment
Alexs Posted March 29, 2014 Share Posted March 29, 2014 For example i have this code local cars = {{579,60000},{400,60000},{404,28000},{489,65000}} then is it possible to get the first number from the first pair and if I press a button or something it gets the first number from the second pair and so on? cars[1][1] = 579 cars[2][1] = 400 http://lua-users.org/wiki/TablesTutorial http://www.lua.org/pil/11.2.html Link to comment
miguel360 Posted March 29, 2014 Author Share Posted March 29, 2014 For example i have this code local cars = {{579,60000},{400,60000},{404,28000},{489,65000}} then is it possible to get the first number from the first pair and if I press a button or something it gets the first number from the second pair and so on? cars[1][1] = 579 cars[2][1] = 400 http://lua-users.org/wiki/TablesTutorial http://www.lua.org/pil/11.2.html thanks man! 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