11 posts
Posted 27 September 2013 - 03:17 PM
I have code of direwolf20s doorSecurity but it makes a few problem
the pastebin is
pastebin.com/7N72RiC2problem is
scan:43: attempt to index ? (a nil value)
758 posts
Location
Budapest, Hungary
Posted 27 September 2013 - 04:01 PM
Eww… Is this OpenCCSensors?
375 posts
Location
USA
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").