The problem is that when users 2 and 3 log in, no matter what password is put in, the client returns a wrong password error. I can't tell if it's an issue with the client or the server, so I'll post them both.
CLIENT
print("Welcome to TiinOS login system.")
print("Please select a user:")
print("1. Tiin")
print("2. Boblit")
print("3. Oran")
t = io.read()
if t == "1" then
print("Please enter the password.")
t = io.read()
rednet.broadcast(t)
local scrap, m = rednet.receive()
if m == "tiin" then
print("Welcome, Tiin.")
else
print("Wrong!")
shell.run("client2")
end
end
if t == "2" then
print("Please enter the password.")
t = io.read()
rednet.broadcast(t)
local scrap, m = rednet.receive()
if m == "boblit" then
print("Welcome, Trevor.")
else
print("Wrong!")
shell.run("client2")
end
end
if t == "3" then
print("Please enter the password.")
t = io.read()
rednet.broadcast(t)
local scrap, m = rednet.receive()
if m == "oran" then
print("Welcome, Oran.")
else
print("Wrong!")
shell.run("client2")
end
end
SERVER
print("Restarting server...")
local scrap, m = rednet.receive()
if m == "empire" then
rednet.broadcast("tiin")
else
rednet.broadcast("x")
end
shell.run("server2")
local scrap, m = rednet.receive()
if m == "Trevor" then
rednet.broadcast("boblit")
else
rednet.broadcast("x")
end
shell.run("server2")
local scrap, m = rednet.receive()
if m == "Irish" then
rednet.broadcast("oran")
else
rednet.broadcast("x")
end
shell.run("server2")
Please help!











