r/ComputerCraft • • Sep 05 '22

Help..

I need a little help. So im starting and i dont know why this doesnt work :

sleep(3)
rs.setOutput("right", true)
sleep(3)
rs.setOutput("right", false)

4 Upvotes

14 comments sorted by

1

u/Afraid_Syrup9609 Sep 05 '22

Well, i want the redstone switch on and off but it gives me an error message

2

u/Afraid_Syrup9609 Sep 05 '22

I will send the error message in 1h

1

u/lazer_aio Sep 05 '22

Meanwhile this might help.

1

u/fatboychummy Sep 05 '22

!remindme 45 minutes

1

u/RemindMeBot Sep 05 '22

I will be messaging you in 45 minutes on 2022-09-05 19:23:00 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

1

u/Afraid_Syrup9609 Sep 05 '22

+ It won't run

5

u/quickpocket Sep 05 '22

You won’t get any help unless you explain why it isn’t working. Is it not turning on or off the redstone? Is it erroring when you try to run it? What do you mean?

2

u/FlightConscious9572 Sep 05 '22

Yup this, is there an error message? Is redstone just not turning on? Is it not looping?

1

u/Afraid_Syrup9609 Sep 06 '22

Okay, i runned the it again and it works just fine, Thanks everyone for their help.

2

u/lazer_aio Sep 06 '22

No problem, never hesitate to ask for help. But next time consider more details and a longer title.

1

u/Tweaked_Turtle Sep 05 '22

To help, you need to give a description of what you want to happen vs what is actually happening

1

u/wolfe_br Sep 05 '22

Replace "sleep" with "os.sleep", maybe that works?

3

u/fatboychummy Sep 05 '22

os.sleep is just set to sleep in the bios (or startup.lua or whatever)

It's literally just os.sleep = sleep.

Doing that will change nothing.

1

u/wolfe_br Sep 05 '22

Oh okay, I didn't know that. Well I'm not sure without more information then...