Jump to content


115billy's Content

There have been 2 items by 115billy (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#22032 [error] password script trouble ->[string "startup"]:10: ')' expected

Posted by 115billy on 27 July 2012 - 11:35 PM in Ask a Pro

Thanks! Dumb mistake as I thought!



#22001 [error] password script trouble ->[string "startup"]:10: ')' expected

Posted by 115billy on 27 July 2012 - 09:25 PM in Ask a Pro

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.

I'm very new to this, so if there's an obvious problem, lemme now. Thanks :)/>