This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Rangicus's profile picture

[SOLVED]Unexpected Symbol

Started by Rangicus, 09 September 2012 - 09:20 PM
Rangicus #1
Posted 09 September 2012 - 11:20 PM
I'm trying to make a listen to rednet program.
Spoilerrednet.open("right")

while true do
senderId,message,distance = rednet.receive()
print("Terminal Number:"senderId", sent you a message:"message)
end
And I get this error
Spoilerbios:206: [string "listen"]:4: unexpected symbol
Help?
And can someone actually like run the script, and try to debug it? Instead of just taking forever by suggesting things? Thanks.
NIN3 #2
Posted 09 September 2012 - 11:32 PM
If this is the line that you letteraly put in
print("Terminal Number:"senderId", sent you a message:"message)
Then you need to change it to…

print("Terminal number:"..senderId.." sent you a message:"..message)