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

I need help with an error that I keep getting

Started by code_noob, 04 May 2013 - 09:02 PM
code_noob #1
Posted 04 May 2013 - 11:02 PM
title: I need help with an error that I keep getting

my code is a simple pass word, kinda outside the box.
the code its self is:
os.clear
rs.setOutput("right",true)
sleep (2)
rs,setOutput("right",false)

regardless of what code I'm doing it gives me the error: bios:206: [string "manny08" ] :2: '=' expected
I've done some trouble shooting with the code, and the issue with os.clear it wants the .to be a = sign, but when I replace the . with a = it doesn't clear, please help me?
Lyqyd #2
Posted 05 May 2013 - 02:34 AM
Split into new topic.

Try using term.clear(), with the parentheses. `os.clear` doesn't exist.
danny_delmax1 #3
Posted 05 May 2013 - 06:38 AM
title: I need help with an error that I keep getting

my code is a simple pass word, kinda outside the box.
the code its self is:
os.clear
rs.setOutput("right",true)
sleep (2)
rs,setOutput("right",false)

regardless of what code I'm doing it gives me the error: bios:206: [string "manny08" ] :2: '=' expected
I've done some trouble shooting with the code, and the issue with os.clear it wants the .to be a = sign, but when I replace the . with a = it doesn't clear, please help me?

Once you put Lyqyd's fix, it will still error further down the line.
This is because you put you put:

rs,setOutput("right",false)
That will error, since instead of calling the setOutput() function from the rs api, you are calling a nil (valueless, undefined) value.

Its just a simple typo, since you put a comma instead of a period.
Correct code:

rs.setOutput("right",false)
Incorrect code:

rs,setOutput("right",false)