Posted 15 June 2016 - 02:16 AM
So I am attempting to use an advanced computer to password lock a door.
I googled how to do it and I found this article " http://computercraft..._Protected_Door "
This is the code I wrote using the article
" bios:14: [string "startup"]:6: unexpected symbol"
I do not know any lua so I cannot fix this code because I dont know what it is saying…..
If anyone can help that would be great!
I googled how to do it and I found this article " http://computercraft..._Protected_Door "
This is the code I wrote using the article
os.pullEvent = os.pullEventRaw
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
My problem with this is when I put it as my startup I get this error on the reboot" bios:14: [string "startup"]:6: unexpected symbol"
I do not know any lua so I cannot fix this code because I dont know what it is saying…..
If anyone can help that would be great!