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

Login

Started by Crowdy199, 22 November 2012 - 05:16 AM
Crowdy199 #1
Posted 22 November 2012 - 06:16 AM
Guys can u help me I need the code for a login screen if u get the username and password I want it to right login successful but I want it so the user name and password are enters tougher instead of the username than the password plz help thanks
Cranium #2
Posted 22 November 2012 - 06:58 AM
We won't write code for you. If you have code, we can help you improve or debug it, but we won't do the work for you. Check the programs section if you want free programs. There are several computer locks there if you search.
tom2018 #3
Posted 22 November 2012 - 07:02 AM
i wont give you code but use the fs api to open a user file then read the password from that users file.
ChunLing #4
Posted 22 November 2012 - 09:53 AM
If you want to separate a single entered string into parts then you probably want a string function like string.match() or string.sub() (I'd use string.match unless you have fixed length usernames).