Lua:
local t = {
[XXXX] = {Values = {{1,3,5,7,9}}, newValues = {}},
[OOOO] = {Values = {{2,4,6,8}}, newValues={}}
}
So basically what Im trying to do is making the Values(of The XXXX) fo to the newValues(of the OOOO). And the values(of the OOOO) go to the newValues(of XXXX).
But since the table calls it(Values and newValues) the same then using table.insert and table.remove will cause both "Values", make the same.
I mean:
Lua:
for a = 1, #v.Values do
table.insert(newValues, v.Values)
end
This should insert in v.newValues, the stuff in v.Values, but since the both are the same then it will send the same stuff right?(And probably cause a bug?), since its calling 2 and has to put in 2, so I guess it will put all numbers 1-9 into both newValues.
I just dunno how to do it, need some help at it.
Thanks in advanced, any type of help will be appreciated