Posted 14 December 2012 - 06:34 AM
hi i got a problem whit when i use like if UP == {User1, User2, User3 } then
but it dosent work i just get password denyed from my code
GPass = "tekkit is awsome"
User1 = "1a2b3c4d5e"
User2 = "lol1"
User3 = "ARE YOU FUCKING CRAZY!?"
shell.run("clear")
print("Master Lock Version: 1.0")
print("")
print("")
write("Group Password: ")
GP = read("*")
if GP == GPass then
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is appceppted!")
else
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is denyed")
os.shutdown()
end
print("now login whit your password")
sleep(2)
shell.run("clear")
write("User Password: ")
UP = read("*")
if UP == {User1, User2, User3 } then
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is appceppted!")
shell.run("back", "true")
sleep(5)
shell.run("back", "false")
os.shutdown()
else
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is denyed")
os.shutdown()
end
but it dosent work i just get password denyed from my code
GPass = "tekkit is awsome"
User1 = "1a2b3c4d5e"
User2 = "lol1"
User3 = "ARE YOU FUCKING CRAZY!?"
shell.run("clear")
print("Master Lock Version: 1.0")
print("")
print("")
write("Group Password: ")
GP = read("*")
if GP == GPass then
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is appceppted!")
else
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is denyed")
os.shutdown()
end
print("now login whit your password")
sleep(2)
shell.run("clear")
write("User Password: ")
UP = read("*")
if UP == {User1, User2, User3 } then
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is appceppted!")
shell.run("back", "true")
sleep(5)
shell.run("back", "false")
os.shutdown()
else
textutils.slowPrint("Password: is sending to server for checking…")
sleep(5)
textutils.slowPrint("Password is denyed")
os.shutdown()
end