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

bios:339: [string "labyos"]:6: '=' expected

Started by maffe03, 15 February 2015 - 07:44 AM
maffe03 #1
Posted 15 February 2015 - 08:44 AM
I tried making a fast startup program for labyos. I`m not very good at coding and found myself with this problem.

bios:339: [string "labyos"]:6: '=' expected
Here`s the whole program

shell.run ("pastebin get eVph1zkH startup")
mon = peripheral.wrap("right")
mon.clear
print ("Attention! Take out the startup floppy desk BEFORE typing startup!")
redstone.setOutput("back",true)
mon = peripheral.wrap("right")
m.setTextScale(1)
m.setTextColour(512)
m.setCursorPos(10,1)
m.write("Welcome to LabyOS!")
m.setTextColor(512)
m.setCursorPos(1,3)
m.write("Look on screen.")
I don`t know what`s wrong.
Lyqyd #2
Posted 15 February 2015 - 10:52 AM
Did you copy and paste that code or re-type it? If you retyped it, please verify that it matches exactly with the code giving you problems, by verifying character for character that they are identical.
Bomb Bloke #3
Posted 15 February 2015 - 10:55 AM
Furthermore, take a read through this.
maffe03 #4
Posted 04 April 2015 - 09:04 PM
Did you copy and paste that code or re-type it? If you retyped it, please verify that it matches exactly with the code giving you problems, by verifying character for character that they are identical.
I copied it.
KingofGamesYami #5
Posted 04 April 2015 - 09:52 PM
Problems I've noticed:

1. Line 1 - Parentheses are not attached to shell.run (probably won't cause problems)
2. Line 3 - mon.clear is not called (will trigger an "equals expected" error)
3. None of your variables are local (local variables are accessed faster, and cannot be changed by other programs)
4. You never check if, in fact, there is a monitor. This could cause line 3+ to error.