Posted 06 August 2012 - 08:51 PM
client code:
rednet.open ("top")
rednet.broadcast ("iwannawatch")
while true do
local id, msg = rednet.receive()
if msg == "conf" then break
end
end
print "server authenticated testing streaming..."
sleep (2)
rednet.send (id, "stream.test")
while true do
local idc, test = rednet.receive()
if idc == id and test == test.correct then break
end
end
server code:
local side = "top"
rednet.open (side)
while true do
local id, msg = rednet.receive()
if msg == "iwannawatch" then break end
end
rednet.send (id,"conf")
print ("client authenticated waiting on stream test")
while true do
local idc, test = rednet.receive()
if idc == id and test == stream.test then break
else print ("wrong computer")
end
end
rednet.send ("test.correct")
in the second if statement of the server code it prints wrong computer i try printing id but it did nothing but leave an empty space were the value should be where is this variable data