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

cant figure out whats going on

Started by ETHANATOR360, 06 August 2012 - 01:14 AM
ETHANATOR360 #1
Posted 06 August 2012 - 03:14 AM

local side = "top"
rednet.open ("side")
while true do
local id, msg = rednet.receive()
if msg == "iwannawatch" then break() end
end
end
i get error line 5 end expected
Pharap #2
Posted 06 August 2012 - 04:05 AM
No clue what you are trying to do with this, but you have 3 ends, but only one if and one while, meaning you only need 2 ends.
Also, your rednet.open("side") is wrong, side shouldn't be in quote marks. At the moment it's string to open the side "side", not the variable side.
1lann #3
Posted 06 August 2012 - 04:53 AM
Your problem is, is that break is not a function. Break is simply just called as

break
Not break()