Jump to content




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

help command lua

1 reply to this topic

#1 TGC_Robin

  • New Members
  • 1 posts

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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,452 posts

Posted 21 December 2015 - 06:07 PM

You haven't defined the variable c anywhere.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users