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

bios:206: '=' expected ?

Started by ftank12, 12 January 2013 - 11:48 AM
ftank12 #1
Posted 12 January 2013 - 12:48 PM
Just need some help with this code!

It says on line 31 it's expecting '=' but i can't understand why?

Heres the code:




local clear = "clear"
local mbpro = 15

term.clear()
term.setCursorPos(1,1)
print("Genius Help")
print("Waiting for entry:")

function displaymsg()

if id == mbpro then

print("Help needed at: MacBook Pro ("..id..")")
print("Type clear to clear: ")
write(">")
input = read()
if input ~= clear then
print("Hmm, that wasn't one of the options!")
sleep(2)
displaymsg()
end

end 

end

rednet.open("right")
id, msg = rednet.receive()
rednet.close

displaymsg()
os.reboot()



Thank you very much, really appreciate it!! :D/>
Lyqyd #2
Posted 12 January 2013 - 12:49 PM
Change:

rednet.close

To:

rednet.close()
ftank12 #3
Posted 12 January 2013 - 12:50 PM
*Brain fried*

Thank you!! :D/>