Posted 18 February 2013 - 05:23 PM
Title: I need help with a refuel code for my mining turtle
So here is my code
print "CheckingFuel…"
if turtle.getFuelLevel() < 200 then
turtle.refuel(1)
print "Refuelling.."
else
print "Enough fuel"
end
ok so i saved it then exited.
I typed the codes folder name thingy whi is "test"
so i typed in "test" then i got the error
CheckingFuel…
test:3: attempt to call nil
So here is my code
print "CheckingFuel…"
if turtle.getFuelLevel() < 200 then
turtle.refuel(1)
print "Refuelling.."
else
print "Enough fuel"
end
ok so i saved it then exited.
I typed the codes folder name thingy whi is "test"
so i typed in "test" then i got the error
CheckingFuel…
test:3: attempt to call nil