This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
0PT1C_FUZ10NZ's profile picture

Problems: When making a Password Lock!

Started by 0PT1C_FUZ10NZ, 10 October 2012 - 01:24 AM
0PT1C_FUZ10NZ #1
Posted 10 October 2012 - 03:24 AM
hi, im trying to make a password but im having problems trying to get it so when i type the password no 1 can see it like i type "test" for the password and it comes out on the computer ****
can i have help please
Lettuce #2
Posted 10 October 2012 - 03:28 AM

io.read("*")
or just

read("*")

This information is also available here. (wiki)

Hope that helps!

–Lettuce
brett122798 #3
Posted 10 October 2012 - 04:24 AM
Hope that helps!

–Lettuce
Wow! Lettuce is more helpful than I thought.. lol.

But yeah, Lettuce is right.
Lyqyd #4
Posted 10 October 2012 - 04:43 AM

io.read("*")
or just

read("*")

This information is also available here. (wiki)

Hope that helps!

–Lettuce

The first one doesn't actually work–io.read() strips arguments before calling read().
0PT1C_FUZ10NZ #5
Posted 10 October 2012 - 04:53 AM
Thanks That helped!
Lettuce #6
Posted 10 October 2012 - 08:31 PM
Well, I learned some things too. We all benefit. I didn't know "io" stripped arguments, I just thought it was "proper" syntax, and read() was just easier to type. Thanks, Lyqyd!

I also learned brett dislikes me. I actually don't know why he does, but I now know he does.