Jump to content




Problems: When making a Password Lock!


  • You cannot reply to this topic
5 replies to this topic

#1 0PT1C_FUZ10NZ

  • New Members
  • 2 posts

Posted 10 October 2012 - 02: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

#2 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 10 October 2012 - 02:28 AM

io.read("*")
or just
read("*")

This information is also available here. (wiki)

Hope that helps!

--Lettuce

#3 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 10 October 2012 - 03:24 AM

View PostLettuce, on 10 October 2012 - 02:28 AM, said:

Hope that helps!

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

But yeah, Lettuce is right.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 10 October 2012 - 03:43 AM

View PostLettuce, on 10 October 2012 - 02:28 AM, said:

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().

#5 0PT1C_FUZ10NZ

  • New Members
  • 2 posts

Posted 10 October 2012 - 03:53 AM

Thanks That helped!

#6 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 10 October 2012 - 07: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users