SuicidalSTDz, on 06 March 2013 - 12:32 PM, said:
http://pastebin.com/u3vJizKf
Just kinda funny to paste such little code...
It's by a guest, how do we know you didn't make it?
Oh look at this pastebin link, what a waste
There have been 469 items by remiX (Search limited from 10-February 22)
Posted by
remiX
on 06 March 2013 - 06:09 PM
in
General
SuicidalSTDz, on 06 March 2013 - 12:32 PM, said:
Posted by
remiX
on 06 March 2013 - 06:05 PM
in
Programs
CastleMan2000, on 06 March 2013 - 10:24 AM, said:
bjornir90, on 02 March 2013 - 09:08 AM, said:
pingoleon60, on 01 March 2013 - 01:02 PM, said:
Posted by
remiX
on 05 March 2013 - 07:18 PM
in
Ask a Pro
Posted by
remiX
on 05 March 2013 - 06:57 AM
in
Ask a Pro
LancerX, on 05 March 2013 - 06:11 AM, said:
item = isOpenSlot(slot) and itemToStock() or nilIt does the same thing, but no need for a function then
Posted by
remiX
on 05 March 2013 - 05:43 AM
in
Ask a Pro
LancerX, on 05 March 2013 - 05:28 AM, said:
-- ternary, because even Java has one -- cond: condition to eval -- tVal: return val if cond == true -- fVal: return val if cond == false -- returns tVal or fVal function ternary(cond, tVal, fVal) if cond then return tVal else return fVal end end -- example: item = ternary(isOpenSlot(slot), itemToStock(), nil)
function ternary(cond, tVal, fVal) return cond and tVal or fVal end
Posted by
remiX
on 05 March 2013 - 04:48 AM
in
Ask a Pro
shell.run("redpulse right 1 20")
Posted by
remiX
on 05 March 2013 - 02:05 AM
in
Operating Systems
Posted by
remiX
on 04 March 2013 - 06:15 PM
in
Ask a Pro
while true do
if sec == 60 then
sec = 0
round = round + 1
end
sec = sec + 20
-- Is all the checking of round in the block of checking the redstone signal on the right? If it is, you had it wrong - it's right now
if redstone.getInput("right", true) then
if round > 30 then -- for this, instead of having two if statements, you can do this: if round > 30 and round < 51 then ...
if round < 51 then
redstone.setOutput("back", false)
sleep(2)
redstone.setOutput("back", true)
term.clear()
sleep(18)
end -- you were missing an end here
end
if round > 50 then
if round < 71 then
redstone.setOutput("back", false)
sleep(4)
redstone.setOutput("back", true)
sleep(16)
end
end
if round > 70 then
if round < 101 then
redstone.setOutput("back", false)
sleep(6)
redstone.setOutput("back", true)
sleep(14)
end -- you had an extra end here
end
end
if redstone.getInput("left", true) then
redstone.setOutput("back", true)
term.clear()
term.setCursorPos(1, 1)
print("There's no round in play.")
round = 1
sec = 0
sleep(1)
end
end
Posted by
remiX
on 04 March 2013 - 06:29 AM
in
Ask a Pro
Bubba, on 04 March 2013 - 06:27 AM, said:
remiX, on 04 March 2013 - 06:01 AM, said:
Bubba, on 04 March 2013 - 05:33 AM, said:
Posted by
remiX
on 04 March 2013 - 06:01 AM
in
Ask a Pro
Bubba, on 04 March 2013 - 05:33 AM, said:
Posted by
remiX
on 04 March 2013 - 03:59 AM
in
Ask a Pro
Senmori, on 04 March 2013 - 12:49 AM, said:
while true do local senderID, message, distance = os.pullEvent(rednet_message) --You could also use rednet.receive() instead of os.pullEvent() if (senderID == "12") and (message == "Hello") then --do stuff else --do other stuff end --ends if statement end -- ends while loop
Posted by
remiX
on 01 March 2013 - 05:53 PM
in
Ask a Pro
nobody1717, on 01 March 2013 - 05:31 PM, said:
