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

YAAY i coded my myself a little program BUT

Started by remlly, 04 March 2012 - 04:49 PM
remlly #1
Posted 04 March 2012 - 05:49 PM
so i made myself a little mining program to stop heating my devices and then explode
YAAAAY
but

jere is waht i code:

rs.setoutput("back", false) – to start mining
sleep
(200)
if false – to begin pause
then rs.setoutput("back", true) – to pause
print("cooldown") – to let me know why mining is stopped
sleep
(120)
end – ends the if block… duh
OS
.reboot – to start everything again

its giving me a error bios:206: [string "timer.lua"]:8: '=' expected
Liraal #2
Posted 04 March 2012 - 06:08 PM
rs.setOutput("back", false) – to start mining
sleep
(200)
rs.setOutput("back", true) – to pause
print("cooldown")
sleep(120)
os.reboot()

this should work. I have no idea what was the if for, and your code's more pascal-like :unsure:/>/>
remlly #3
Posted 04 March 2012 - 06:16 PM
rs.setOutput("back", false) – to start mining
sleep
(200)
rs.setOutput("back", true) – to pause
print("cooldown")
sleep(120)
os.reboot()

this should work. I have no idea what was the if for, and your code's more pascal-like :unsure:/>/>
lol wath do you mean pascal like, thx for the help i'll try now, and it was for my buildcraft machines, they keep exploding 0.o