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

Help a noob with redpulse.

Started by owen thecool, 03 March 2013 - 01:41 PM
owen thecool #1
Posted 03 March 2013 - 02:41 PM
Title: Help a noob with redpulse.

Hello, i've been trying to create a server-alarm system for a private server I run with some friends. My code is:

print "WARNING! EMERGENCY SYSTEMS BEING ACTIVATED"
redpulse left 1 1000
However, I get an error…
"Bios:206: [string "Warning"]:1: '=' expected

Any help would be greatly appreciated.
Thanks.
Lyqyd #2
Posted 03 March 2013 - 06:41 PM
Split into new topic.


print("WARNING! EMERGENCY SYSTEMS BEING ACTIVATED")
shell.run("redpulse left 1 1000")
owen thecool #3
Posted 04 March 2013 - 05:22 AM
Thanks. I'm really bad with lua…

Edit: No… I did something wrong there too. My code is now

print("WARNING! EMERGENCY SYSTEMS BEING ACTIVATED")
shell.run("redpulse left 1 150")
Pics:
Spoiler

Error:

Spoiler
Lyqyd #4
Posted 04 March 2013 - 06:56 AM
No, you forgot the quotes around the second one. You need to copy it exactly. And since you're on such an ancient version, you may even need the second line to be this:


shell.run("redpulse", "left", "1", "150")
owen thecool #5
Posted 04 March 2013 - 08:07 AM
Thanks. I should've specified that I was playing on the tekkit verson, sorry about that. :P/>