Posted 03 June 2014 - 01:40 PM
so im trying to make a item counter for my market but i cant get this to work the code is
the error i get is " Bios:366: [string "itemp":15: '=' expected
thanks in advance
function count()
l = 0
for i = 1, 16 do
turtle.suck()
turtle.select(i)
end
for i = 1, 16 do
turtle.select(i)
l = l + turtle.getItemCount(i)
end
file = fs.open("disk/cobble", "w")
file.write(l)
file.close
for s = 1, 16 do
turtle.select(s)
turtle.drop()
end
end
while true do
count()
sleep(2)
end
the error i get is " Bios:366: [string "itemp":15: '=' expected
thanks in advance
Edited on 03 June 2014 - 11:42 AM