Posted 21 May 2013 - 05:55 PM
                Hello!
- i know this might be a noobish question.. but i really cant find my mistake here :/ it says that in line 14 there is a mistake:S
the fail is: "bios:338: [string "redstone"] : 14: 'end' expected (too close to 'while' at line 12)"
Can you help me? :)/>
regard plazter
EDIT: got it working with
Thanks for the help otherwise! :D/>
will return if it shows to fail :)/>
EDIT: Dont use it.. semi works but fails since it just stops the program XD
                
                    - i know this might be a noobish question.. but i really cant find my mistake here :/ it says that in line 14 there is a mistake:S
the fail is: "bios:338: [string "redstone"] : 14: 'end' expected (too close to 'while' at line 12)"
local rsSide = "left"
function run()
   turtle.suck()
	 for i = 1,16 do
	   turtle.select(i)
	 turtle.dropDown()
  end
sleep(3)
end
	while not rs.getInput(rsSide) do
	   run()
	 else  -- this is line 14 where it says fail is
   sleep(5)
end
Can you help me? :)/>
regard plazter
EDIT: got it working with
local rsSide = "left"
function run()
turtle.suck()
  for i = 1,16 do
  turtle.select(i)
  turtle.dropDown()
end
sleep(3)
end
if not rs.getInput(rsSide) then
  repeat run()
  until os.pullEvent("redstone")
run()
end
Thanks for the help otherwise! :D/>
will return if it shows to fail :)/>
EDIT: Dont use it.. semi works but fails since it just stops the program XD
Edited on 21 May 2013 - 04:06 PM
                
             
         
                