Posted 27 June 2012 - 09:03 AM
Can You Please Help Me My Login Doesn't Work
Can You Please Tell Me What Is Wrong??
Here Is The Code
Can You Please Tell Me What Is Wrong??
Here Is The Code
admin = "admin"
Apass = "admin"
default = "default"
Dpass = "default"
shell.run("clear")
print("--Mine7 Login--")
print("Users:")
print("[Admin]")
print("[Default]")
status, input = pcall (read)
if input == admin then
print "Password:"
status, password = pcall (read,'*')
if password == Apass then
print "Access Granted!"
sleep(2)
shell.run("cd","Admin")
shell.run("clear")
else
print("Access Denied!")
sleep(2)
os.shutdown()
end
elseif input == default then
print "Password:"
status, password = pcall (read,'*')
if password == Dpass then
print "Access Granted!"
sleep(2)
shell.run("cd","Default")
shell.run("clear")
else
print "Access Denied!"
sleep(2)
os.shutdown()
end
Thanks