Posted 06 April 2012 - 05:48 PM
Hello I am trying to have a central server that holds a list of usernames and passwords. I have the client send the username name to the server but the server never receives the message.
This is the server's code
This is the server's code
while true do
print("Listening for login requests")
rednet.open("top")
usernames = {}
usernames[1]="Dylan"
usernames[2]="Devon"
usernames[3]="Gio"
id, user = rednet.receive()
print(user)
end
This is the client's code
rednet.open("top")
print("Welcome to Dylan's house")
write("Username: ")
status , input = pcall(read)
rednet.send(7, input)
while id ~= 7 do
id,message = rednet.receive()
end
Thank you for the help