Posted 27 July 2012 - 10:25 PM
So i'm trying to create a door password script (see below)
function lock()
term.clear()
term.setCursorPos(1,1)
os.PullEvent = os.pullEventRaw
pass = oi.read()
if pass == "test" then
term.clear()
redstone.setOutput("right", true)
sleep(3)
redstone.setOutput("right", false)
lock()
else
lock()
end
end
lock()
it is saved to disk/startup
I get an error saying that in line 10, there's a ')' missing when first putting in the floppy then activating the computer, but based on this video it looks fine to me. [media]http://www.youtube.com/watch?v=dp-adiB2aaY[/media]
I'm very new to this, so if there's an obvious problem, lemme now. Thanks :)/>/>
function lock()
term.clear()
term.setCursorPos(1,1)
os.PullEvent = os.pullEventRaw
pass = oi.read()
if pass == "test" then
term.clear()
redstone.setOutput("right", true)
sleep(3)
redstone.setOutput("right", false)
lock()
else
lock()
end
end
lock()
it is saved to disk/startup
I get an error saying that in line 10, there's a ')' missing when first putting in the floppy then activating the computer, but based on this video it looks fine to me. [media]http://www.youtube.com/watch?v=dp-adiB2aaY[/media]
I'm very new to this, so if there's an obvious problem, lemme now. Thanks :)/>/>