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

Another Problem :(

Started by con2000, 03 June 2012 - 10:43 AM
con2000 #1
Posted 03 June 2012 - 12:43 PM
Got This When Trying To Use Code:

bios:25: bad argument: double expected, got nil

Code:all = colors.combine ( colors.white, colors.blue, colors.orange )
o = colors.combine ( colors.orange)
b = colors.combine ( colors.blue )
w = colors.combine ( colors.white )

term.setCursorPos(18,7)
textutils.slowPrint ("NY Islanders RULE")
sleep(3)
term.setCursorPos(18,8)
write ("white")
white = read()
term.setCursorPos(18,9)
write ("blue")
blue = read()
term.setCursorPos(18,10)
write ("Orange")
Orange = read()
term.setCursorPos(18,11)
write ("ALL")
ALL = read()
textutils.slowPrint ("Shrine Activated! ")
sleep(3) ——————————————— It Gets Stuck Right After Sleep(3) It Worked Before
rs.setBundledOutput ("back", w)
sleep((red))
rs.setBundledOutput ("back", 0)
rs.setBundledOutput ("back", :)/>/>
sleep((blue))
rs.setBundledOutput ("back", 0)
rs.setBundledOutput ("back", o)
sleep((Orange))
rs.setBundledOutput ("back", all)
sleep((ALL))
rs.setBundledOutput ("back", 0)
os.reboot()


I Still Can't Figure Out Whats Wrong Cause I'm A HOBO!!!
Pinkishu #2
Posted 03 June 2012 - 01:23 PM
e.g. sleep(red) should just do fine, no point in the extra ()
then you should use
white = tonumber(read())
so it is a number
con2000 #3
Posted 04 June 2012 - 10:21 PM
tanx!