Posted 01 July 2012 - 01:10 PM
On a tekkit server me and my 2 friends share a pc. I made a login system but i cant get it to work!
All goes fine until i write my password, then it says "Username Incorrect!" any fixes?
term.clear()
term.setCursorPos(1,1)
lysdalpass = "lasse09maia"
jimmypass = "null"
sammepass = "null"
write("Username: ")
user = read()
if user == "lysdal" then
write("Password: ")
p1 = read()
if p1 == lysdalpass then
print("Welcome Lysdal!")
else
print("Password Incorrect!")
sleep(2)
os.shutdown()
end
end
if user == "jimmy" then
write("Password: ")
p2 = read()
if p2 == jimmypass then
print("Welcome Jimmy!")
else
print("Password Incorrect!")
sleep(2)
os.shutdown()
end
end
if user == "samme" then
write("Password: ")
p3 = read()
if p3 == sammepass then
print("Welcome Samme!")
else
print("Password Incorrect!")
sleep(2)
os.shutdown()
end
end
if not user == "samme" or "lysdal" or "jimmy" then
print("Username Incorrect!")
sleep(2)
os.shutdown()
end
All goes fine until i write my password, then it says "Username Incorrect!" any fixes?