Posted 17 May 2015 - 07:49 PM
I am just confused. I normally wouldn't even consider myself inexperienced at coding, and I have been trying to find out what I'm doing wrong here for almost an hour. I literally have 4 lines:
I was actually replicating a piece of code I had already written yesterday, since it was on a server and I wanted to test my system while the server was down. I am pretty sure this is exactly what I had written, but there is apparently a possibility I haven't written this right. I have already tested if the args table works correctly, which it does. I have also made sure that the back of the computer is adjacent to the computer port on the reactor. It's just the function: setAllControlRodLevels() that's not working for some reason. The error message is as follows:
args = {...}
level = tonumber(args[1])
reactor = peripheral.wrap("back")
reactor.setAllControlRodLevels(level)
I was actually replicating a piece of code I had already written yesterday, since it was on a server and I wanted to test my system while the server was down. I am pretty sure this is exactly what I had written, but there is apparently a possibility I haven't written this right. I have already tested if the args table works correctly, which it does. I have also made sure that the back of the computer is adjacent to the computer port on the reactor. It's just the function: setAllControlRodLevels() that's not working for some reason. The error message is as follows:
>cr 90
cr:4: attempt to call nil