Posted 03 October 2012 - 03:27 AM
Im writing a relay server to use with a com tower and satellite network. Im having trouble with this stretch of code, getting the 'then' expected error on the line that has a 'then'.
level == 0
senderId == nil
local function relay(senderId, level)
if level == 0 AND senderId == nil then
senderId1, header, distance = rednet.receive()
-- multiple lines of code to avoid conflict between messages to relay and broadcasts that lead to senderId and level being set to other values depending on content received
end
end