Code: Select all
for y = 1 , mapheight do
file:write("\n")
for x = 1, mapwidth do
if x == 1 then
file:write(map[x][y][0])
else
file:write("," .. map[x][y][0] )
end
end
end
So the problem is, how I can tell the program to read the items in the lines ie. read one item, store it to the map table read the next etc..
I'm so new to the lua