Posted 16 April 2013 - 12:39 PM
function invfull()
local invcount = 0
for c = 4, 16 do
turtle.getItemCount©
if turtle.getItemCount© > 0 then
invcount = invcount+1
end
end
if invcount > 12 then
turtle.select(3)
turtle.place()
deposit() – calling the deposit items function
turtle.select(3)
turtle.dig()
invcount = 0
end
else
invcount = 0
end
end
end
keep getting end expected to close function
if I put more ends in it doesn't change or 'eof' expected
local invcount = 0
for c = 4, 16 do
turtle.getItemCount©
if turtle.getItemCount© > 0 then
invcount = invcount+1
end
end
if invcount > 12 then
turtle.select(3)
turtle.place()
deposit() – calling the deposit items function
turtle.select(3)
turtle.dig()
invcount = 0
end
else
invcount = 0
end
end
end
keep getting end expected to close function
if I put more ends in it doesn't change or 'eof' expected