Jump to content




Peripheral does not work

lua peripheral

  • You cannot reply to this topic
3 replies to this topic

#1 AHugoH

  • New Members
  • 2 posts

Posted 03 April 2012 - 05: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?

#2 ComputerCraftFan11

  • Members
  • 771 posts
  • LocationHawaii

Posted 03 April 2012 - 05:40 PM

View PostAHugoH, on 03 April 2012 - 05:33 PM, said:

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

#3 AHugoH

  • New Members
  • 2 posts

Posted 05 April 2012 - 01:52 PM

Thanks, Ispelled wrong with "peripheral.wrap".
Sorry!

#4 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 05 April 2012 - 02:19 PM

spelling errors are annoying they can break your whole code if u get one letter wrong :)/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users