Question: I'm getting an this error(bios:339: [string"rTable"]:9: ')' expected) whenever I run this code.
local id = nil
local packet = {["id"] = 1, ["name"] = "Bob", ["msg"] = "hi there"}
local msg = nil
while true do
id, msg = rednet.receive(10)
if id ~= nil and msg ~= nil then
packet = textutils.unserialize(msg)
print("id: "...packet.id)
print("name: "...packet.name)
print("msg: "....packet.msg)
break
end
end
I'm thinking it's a syntax error, but I wouldn't be here unless I was stumped. I apologize if this question is to trivial for the forum or answered somewhere else. If there is an answer to the problem in a post or in a tutorial please link, I would be more than happy to read it, I just have problems navigating around. Thank you :)











