Posted 03 September 2012 - 04:19 AM
Well, hey guys. So I had recently just learned about CC and was watching some tutorials on YouTube how to make a password protected door. I made one correctly for my own house, and it works perfectly fine.I was making a second one for someone else's house, and I copied my first code almost word for word. (Except write("Blah blah") and print("Blah blah").) Anyway, it doesn't work for some reason. It says: bios:206: [string "Door"]:13: '=' expected Keep in mind that I am a noob to all of this, so I'm going to give you my code and hoefully someone will help me. Thanks! *The craft OS is 1.3
correctpass = "Blah Blah"
write("Please insert password: ")
pass = read()
if pass == (correctpass) then
write("Blah blah")
redstone.setOutput("left", true)
sleep(3)
os.shutdown
else
write("Blah blah")
redstone.setOutput("top", true)
sleep(1)
os.shutdown
end
There is only 1 space between os.shutdown & end. (BTW)
correctpass = "Blah Blah"
write("Please insert password: ")
pass = read()
if pass == (correctpass) then
write("Blah blah")
redstone.setOutput("left", true)
sleep(3)
os.shutdown
else
write("Blah blah")
redstone.setOutput("top", true)
sleep(1)
os.shutdown
end
There is only 1 space between os.shutdown & end. (BTW)