Jump to content




[Lua] [Error] Turtle program not working


  • You cannot reply to this topic
4 replies to this topic

#1 _Stoned_Panda_

  • New Members
  • 5 posts

Posted 06 October 2012 - 09: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


#2 Doyle3694

  • Members
  • 815 posts

Posted 06 October 2012 - 09:42 PM

forgot () at term.clear

#3 _Stoned_Panda_

  • New Members
  • 5 posts

Posted 06 October 2012 - 09:44 PM

View PostDoyle3694, on 06 October 2012 - 09:42 PM, said:

forgot () at term.clear
Thanks, but now im getting another error, Door:4: ettempted to call nill

#4 Doyle3694

  • Members
  • 815 posts

Posted 06 October 2012 - 09:47 PM

term.setCursorPos(1,1)
you wrote: term.setCurserPos(1,1)

#5 _Stoned_Panda_

  • New Members
  • 5 posts

Posted 06 October 2012 - 09:49 PM

View PostDoyle3694, on 06 October 2012 - 09:47 PM, said:

term.setCursorPos(1,1)
you wrote: term.setCurserPos(1,1)
Thank you, Working :D/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users