Posted 16 January 2017 - 10:42 PM
Brand new to computercraft, trying to make a locked door with computers. The code I put in was
while true do
term.clear()
term.setCursorPos(1, 1)
print("Please Enter Password:")
input = read("*")
if input == "Password" then
redstone.setOutput("back", true)
sleep(2)
redstone.setOutput("back", false)
end
end
and when I put in startup, i get an error saying
BIOS:14: [String "startup"]:4: ')' Expected
Anyone know why?
while true do
term.clear()
term.setCursorPos(1, 1)
print("Please Enter Password:")
input = read("*")
if input == "Password" then
redstone.setOutput("back", true)
sleep(2)
redstone.setOutput("back", false)
end
end
and when I put in startup, i get an error saying
BIOS:14: [String "startup"]:4: ')' Expected
Anyone know why?