Difference between revisions of "Talk:Redstone (API)"

From ComputerCraft Wiki
Jump to: navigation, search
(unsigned template and talkpage cleanup)
Line 1: Line 1:
==(Question that should have been asked on the forums)==
+
==(no title)==
 
i tried to do it but for some reason it didnt work, i tried:
 
i tried to do it but for some reason it didnt work, i tried:
  
Line 6: Line 6:
 
sleep(0.5)<br />
 
sleep(0.5)<br />
 
setBundledOutput(orange,back,magenta)<br />
 
setBundledOutput(orange,back,magenta)<br />
 
  
 
and after the 5 seconds, it puts:
 
and after the 5 seconds, it puts:
 
"redtest:2: attempt to call nil"
 
"redtest:2: attempt to call nil"
  
how the heck does it work? how can i get it to work? someone plez reply lol, im new to lua so i know very little about lua...
+
how the heck does it work? how can i get it to work? someone plez reply lol, im new to lua so i know very little about lua... <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:98.127.192.199|98.127.192.199]] ([[User talk:98.127.192.199|talk]] • [[Special:Contributions/98.127.192.199|contribs]]) </span></small><!-- Template:Unsigned -->
 +
 
 
: First of all, where's the function declaration? You call redtest(), but the error tells that it doesn't exist. Second, use redstone.setBundledOutput() or rs.setBundledOutput(). [[User:Wukl|Wukl]] 09:12, 9 April 2012 (UTC)
 
: First of all, where's the function declaration? You call redtest(), but the error tells that it doesn't exist. Second, use redstone.setBundledOutput() or rs.setBundledOutput(). [[User:Wukl|Wukl]] 09:12, 9 April 2012 (UTC)

Revision as of 19:36, 25 April 2012

(no title)

i tried to do it but for some reason it didnt work, i tried:

sleep(5)
setBundledOutput(orange,back,magenta)
sleep(0.5)
setBundledOutput(orange,back,magenta)

and after the 5 seconds, it puts: "redtest:2: attempt to call nil"

how the heck does it work? how can i get it to work? someone plez reply lol, im new to lua so i know very little about lua... — Preceding unsigned comment added by 98.127.192.199 (talkcontribs)

First of all, where's the function declaration? You call redtest(), but the error tells that it doesn't exist. Second, use redstone.setBundledOutput() or rs.setBundledOutput(). Wukl 09:12, 9 April 2012 (UTC)