Posted 03 November 2012 - 09:16 AM
So a part of a quarry program I'm making (somewhat) figures out what is in each slot and how many there are and stores them in a table (or it will) . So my question is how exactly do you make a multi-dimensional array, or a matrix. I already looked it up and don't understand why this
If its pretty complicated I could just use two separate tables.
table = {}
table [1] = {}
table [1] = 1000
table [1][1] = 1
print(table[1])
print(table[1][1])
dosen't work, error on line 4: Index expected, got number. Could somebody explain how this works?If its pretty complicated I could just use two separate tables.