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

bit:40: bad argument: double expected, got nil

Started by TGC_Robin, 21 December 2015 - 03:03 PM
TGC_Robin #1
Posted 21 December 2015 - 04:03 PM
Hello,
I am building a nuclear powerplant and I was writing a code.
But I get this Message: "bit:40: bad argument: double expected, got nil"
Can somebody explain where I did wrong?
Here is the code:

monitor = peripheral.wrap("back")
monitor.clear()
monitor.setTextScale(2)
monitor.setCursorPos(1,1)
if colors.test( c, colors.black) == true then
monitor.setCursorPos(1,1)
monitor.write("powerPlant overheating = true")
else
monitor.setCursorPos(1,1)
monitor.write("powerPlant overheating = false")
end

note:
I am playing in Tekkit.
so it is computercraft 1.33
Lyqyd #2
Posted 21 December 2015 - 06:07 PM
You haven't defined the variable c anywhere.