Hello guys :)/>
First I need to say that I literaly started using ComputerCraft 2 days ago, so I'm a complete noob (applies to LUA as well) :)/>
On the subject.
I have multiple combustion engines constantly running, but for some reason (don't know if it's a bug or not) after a while the water stops flowing and eventually they just blow up, destroying all my work. After a while I figured that the only way to restore the water flow is by restarting the server. So to prevent my engines from from blowing my place, I started using redstone waterproof pipes. When there's a water in the pipe, it emits redstone signal that powers the engine. As soon as it empites, the engine stops. So far, so good. The thing is that I can't watch them all the time, so I need some sort of an alarm, that will "tell" me when an engine has stopped, so I can restart the server.
I did some googling, watched a crapload of tutorials and found a few codes, that if combined they'd do the job. But due to my "knowledge" in ComputerCraft, I couldn't make it work :/
Here's what I need:
Basically, It's a lamp, that starts flashing as soon as the computer stops recieving redstone signal from the pipe. Additionally, if for some reson the water flow starts again w/out restarting the server, the program goes back to "monitoring" state.
The code
And the error message I get
Thanks in advance and please excuse my crappy English