So a buddy and i, have been playing around for an auto wrapper for turbines and monitors, but when we plug the monitor into the system, it gives us error: 36:attempt to call nill
Code:
Spoiler
Any help is appreciated!
//Plazter
EDIT: the "(b )/>" is done by the editor.. dno why we use "(b )"
EDIT 2#:
turbines = {peripheral.find("BigReactors-Turbine")} monitors = {peripheral.find("monitor")} for i=1, #monitors do monitors[i].clear() monitors[i].write("*") end print ("Amount of turbines found: "..table.getn(turbines).."\n") for i = 1, #turbines do monitors[1].write(turbines[1].getActive()) endLine 10: "monitors[1].write(turbines[1].getActive())
is returning a "attempt to call nill" error, really cant see where its going wrong (if you read before i edited the edited the edited version, we have some snipped out part in the code ingame, typed without thinking )
Edited by plazter, 27 March 2016 - 06:07 AM.