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

Peripheral does not work

Started by AHugoH, 03 April 2012 - 04:33 PM
AHugoH #1
Posted 03 April 2012 - 06:33 PM
Peripheral does not work. Every time I run eg this code:

monitor = peripheral.wrap("left")--A monitor is to the left of the computer
monitor.write("Hello!")

Will there always be an error message:

lua:1: attempt to calll nil


Why?
ComputerCraftFan11 #2
Posted 03 April 2012 - 06:40 PM
Peripheraldoes not work forme. Every time I run eg this code:

monitor = peripheral.warp("left")--A monitor is to the left of the computer
monitor.write("Hello!")

Will there always be an error message:

lua:1: attempt to calll nil


Why?

You mispelled peripheral.wrap
AHugoH #3
Posted 05 April 2012 - 02:52 PM
Thanks, I spelled wrong with "peripheral.wrap".
Sorry!
djblocksaway #4
Posted 05 April 2012 - 03:19 PM
spelling errors are annoying they can break your whole code if u get one letter wrong :)/>/>