Posted 21 June 2015 - 12:40 AM
I'm trying to use a table inside a table, bur for some reason is not working
1
1
51
if for example I change "teste={7,2,3}" the first time that this code run it returns
1
7
57
and the second time it returns
7
7
57
I'm pretty confused, the expected result to me was something like
1
1
11
I'm using the computer craft from the tekkit mod, I think it's version is 1.6 or 1.6.1 from what I can do
t={teste}
teste={1,2,3}
print(t[1][1])
print(teste[1])
table.insert(t[1],1,5)
print(t[1][1],teste[1])
this is returning1
1
51
if for example I change "teste={7,2,3}" the first time that this code run it returns
1
7
57
and the second time it returns
7
7
57
I'm pretty confused, the expected result to me was something like
1
1
11
I'm using the computer craft from the tekkit mod, I think it's version is 1.6 or 1.6.1 from what I can do