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

B.P.M.S. battery power management system problem

Started by Tiberium_117, 09 May 2018 - 03:15 AM
Tiberium_117 #1
Posted 09 May 2018 - 05:15 AM
hello there, I am trying to write a code to get a input from a comparitor and then turn on a nuclear craft reactor and lava generators at the correct time, but I keep having an error

error code bios.lua:26: [string "batteryControl.lua"]:49: = expected

hear is the code any help would be appreciated :)/>

https://pastebin.com/TgkdGPDe
KingofGamesYami #2
Posted 09 May 2018 - 05:20 AM
You must add parentheses to call your functions, even if there are no arguments. (There is one exception to parentheses but that's just confusing).
Tiberium_117 #3
Posted 09 May 2018 - 06:16 AM
Thank you, I got my code fixed