Posted 07 July 2012 - 12:18 AM
Hello
While working on my email client, and after some great help in my other topic, I managed to get registration working perfectly. However, I then wrote a program the client can run to request the name and ID of an entry in the table by sending the server a number, gotten from user input. The server keeps giving me an error I can't solve. The error is:
rednet:350:string expected
Server Code:
Client Code:
While working on my email client, and after some great help in my other topic, I managed to get registration working perfectly. However, I then wrote a program the client can run to request the name and ID of an entry in the table by sending the server a number, gotten from user input. The server keeps giving me an error I can't solve. The error is:
rednet:350:string expected
Server Code:
print("Running eMail server")
table1={}
n=0
rednet.open("right")
while true do
if message == "reglist" then
regname = rednet.receive()
print("Receiving Database Query request from " .. id)
print(table1[regname])
rednet.broadcast(table1[regname])
print("Computer has been sent requested listing.")
end
end
Client Code:
rednet.open("right")
rednet.broadcast("reglist")
print("Querying Server...")
print("Enter Database Position Number:")
rednet.broadcast(read())
print("Sending request to the Server...")
id, message = rednet.receive()
print("Registration Server Response: " .. message)