12 posts
Posted 09 April 2016 - 09:17 PM
I am making a program to control a portal and I am getting the error "portalControl:8: attempt to index ? (a nil value)"
Here is the code:
http://pastebin.com/4XcmnBgaAny help is appreciated
463 posts
Location
Star Wars
Posted 10 April 2016 - 12:20 AM
Put a print on the beginning:
print(textutils)
To test, if textutils is declared.
463 posts
Location
Star Wars
Posted 10 April 2016 - 12:28 AM
Line 8 or 7?
If 7, then check that peripheral.wrap returns a table.
7083 posts
Location
Tasmania (AU)
Posted 10 April 2016 - 02:14 AM
Line 8 or 7?
If 7, then check that peripheral.wrap returns a table.
That is to say, likely "chest_0" isn't available to wrap.
12 posts
Posted 10 April 2016 - 02:20 AM
Line 8 or 7?
If 7, then check that peripheral.wrap returns a table.
That is to say, likely "chest_0" isn't available to wrap.
I feel like an idiot. When I wrote the program I completely forgot the chest is "chest_3" instead of "chest_0". Thanks a lot.