This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Taku's profile picture

"do" expected on line 25

Started by Taku, 29 November 2016 - 01:51 PM
Taku #1
Posted 29 November 2016 - 02:51 PM
So I made a simple tunneling program for my turtle that mines and once an item appears in the 16th slot will walk back to the chest and drop all the mined items back in

Only one problem, it doesnt work.
http://pastebin.com/sJmcq1e5
supernicejohn #2
Posted 29 November 2016 - 08:21 PM
In the code you wrote:

while i == 1 true do
when you probably meant

while i == 1 do
You could do "while (i == 1) == true do", which might have been your idea, but that is redundant.
This needs to change on lines: 25, 32, 37 and 45.

Good luck otherwise! ;)/>
Taku #3
Posted 02 December 2016 - 10:40 AM
In the code you wrote:

while i == 1 true do
when you probably meant

while i == 1 do
You could do "while (i == 1) == true do", which might have been your idea, but that is redundant.
This needs to change on lines: 25, 32, 37 and 45.

Good luck otherwise! ;)/>
Thank you so much!