Password:6: attempt to index? (A nil value)
Http://pastebin.com/V43rSgSW
term.clear()
term.setCursorPos(1,1)
password = "zxcvbnm"
print"Holcombeshost OS 0.01"
textutils.slowPrint("Booting into secure password lock system 0.01")
textutiles.slowPrint("[************************************************]")
print"Booted into Holcombeshost secure password lock"
sleep(3)
input = read("*")
write"Password: "
if input == password then
textutils.slowPrint("Verifying password...")
textutils.slowPrint("Password was correct")
print"You now have access thru the door for 3 secconds"
rs.setOutput("bottom",true)
sleep(3)
rs.setOutput("bottom",false)
os.shutdown()
else
textutils.slowPrint("Veriying password...")
textutils.slowPrint("Password was incorrect")
print"System will now log time, date and user"
textutils.slowPrint("[*************************************************]")
print"Logged"
print"System will now shutdown"
sleep(3)
os.shutdown()
end
Meh, I think it looks cleaner. Also, I was born to type ;)/> Doesn't bother me at all. But that's just my opinion. Feel free to use either method you want, your code, your rules (Well sort of).@SuicidalSTDz, I disagree. The only problem I have with that is that there's no space between print and "Hello". Other than that, I would say that it looks way cleaner without parentheses than with, and it's less typing in the longrun.
sp = textutils.slowPrint
I think I can safely say, Kingdaro and I both are happy to help :)/>Thanks for the help guys. I'm going to delete this thread now! + first time I used pastebin and its genuinely amazing!
Sure you can… (In our dreams :D/>)U can't delete threads…