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

[Lua] [Error] Turtle program not working

Started by _Stoned_Panda_, 06 October 2012 - 08:33 PM
_Stoned_Panda_ #1
Posted 06 October 2012 - 10:33 PM
Hey guys, no idea whats going wrong here
bios:206 : [string "Door"]:4: '=' expected

Hapl :D/>/>

local password = "test"
while true do
  term.clear
  term.setCurserPos(1,1)
  print ("Enter Password")
  input = read("*")
  if input == "password" then
    turtle.digUp()
    turtle.forward(1)
    sleep(5)
    turtle.back(1)
    turtle.placeUp()
  else
    sleep(1)
  end
end
Doyle3694 #2
Posted 06 October 2012 - 10:42 PM
forgot () at term.clear
_Stoned_Panda_ #3
Posted 06 October 2012 - 10:44 PM
forgot () at term.clear
Thanks, but now im getting another error, Door:4: ettempted to call nill
Doyle3694 #4
Posted 06 October 2012 - 10:47 PM
term.setCursorPos(1,1)
you wrote: term.setCurserPos(1,1)
_Stoned_Panda_ #5
Posted 06 October 2012 - 10:49 PM
term.setCursorPos(1,1)
you wrote: term.setCurserPos(1,1)
Thank you, Working :D/>/>