Originally Posted by lungdesire
mass = {"one", "two", "three"}
test = "mass"
for i, v in pairs(test) do
print(v)
end
Why this code dont work and where error?
|
I am still learning about programming but I wonder is the problem that you have a local table named
mass and then you have a local string "mass" named
test.
So when you are trying to iterate through the string variable
test it fails as
test is not a table.
Vrul has provided the actual answer.