Posted 09 January 2015 - 11:45 PM
I assumed this type of program would be easy to write.
The user inputs a password, (X) and the script will compare the password to the pre-inserted password.(P)
but instead if in the password (5562) it just tells me the password is incorrect.
p = 5562
i = 0
textutils.slowPrint("Password? ")
x = read()
if x == p then
rs.setOutput("back",true)
sleep(5)
rs.setOutput("back",false)
else
textutils.slowPrint("password incorrect")
end
The user inputs a password, (X) and the script will compare the password to the pre-inserted password.(P)
but instead if in the password (5562) it just tells me the password is incorrect.
p = 5562
i = 0
textutils.slowPrint("Password? ")
x = read()
if x == p then
rs.setOutput("back",true)
sleep(5)
rs.setOutput("back",false)
else
textutils.slowPrint("password incorrect")
end