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

I Am Asking A Pro

Started by karadeli, 27 September 2013 - 01:17 PM
karadeli #1
Posted 27 September 2013 - 03:17 PM
I have code of direwolf20s doorSecurity but it makes a few problem

the pastebin is

pastebin.com/7N72RiC2

problem is

scan:43: attempt to index ? (a nil value)
LBPHacker #2
Posted 27 September 2013 - 04:01 PM
Eww… Is this OpenCCSensors?
Yevano #3
Posted 27 September 2013 - 04:02 PM
p is set at the top of the code on line 8 using peripheral.wrap. The wiki says:

Returns a table of functions, allowing you to call peripheral methods as if they were normal Lua functions. If no peripheral is connected, returns nil.

Check to make sure you have the peripheral connected on the given side (It is set to "right").