34 posts
Posted 30 December 2012 - 05:16 AM
Any 1 know how/if it is posible to stop a program in the code, terminate the program in the code
1548 posts
Location
That dark shadow under your bed...
Posted 30 December 2012 - 05:30 AM
use return or error()
212 posts
Location
Dallas, Tx
Posted 30 December 2012 - 06:19 AM
shell.exit()
or
os.reboot()
34 posts
Posted 30 December 2012 - 07:00 AM
thanks :D/>
34 posts
Posted 30 December 2012 - 07:13 AM
new problem
turtle.dig()
turtle.forward()
while true do
turtle.digUp()
turtle.up()
if turtle.detectUp() == false then
while true do
turtle.down()
if turtle.detectDown() == true then
turtle.turnRight()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.turnRighht()
turtle.select(2)
turtle.place
turtle.select(3)
turtle.place
turtle.select(1)
return
end
end
end
end
2088 posts
Location
South Africa
Posted 30 December 2012 - 07:56 AM
new problem
–snip
What's the problem?
I see a problem with the code:
turtle.turnRighht(), line 14
should be turtle.turnRight(), was that the problem?
1688 posts
Location
'MURICA
Posted 30 December 2012 - 07:59 AM
And there are some lines where you forgot the (), e.g. on turtle.place, 7th and 9th line from the bottom.