This is how i wait:
while redstone.getOutput("back") == false do i = 1 end
How can i stop my program from crashing?
Posted 30 April 2012 - 07:11 PM
while redstone.getOutput("back") == false do i = 1 end
Posted 30 April 2012 - 07:16 PM
while not redstone.getInput("back") do os.queueEvent("randomEvent") os.pullEvent() i = 1 endFixed code. ^^
Posted 30 April 2012 - 07:18 PM
Posted 30 April 2012 - 07:24 PM
Posted 30 April 2012 - 07:34 PM
while true do os.pullEvent("redstone") if rs.getInput("back") then break end endIt will wait for any change in redstone input and then check if the input is in the side you want and break the loop if it is.
Posted 01 May 2012 - 05:39 PM
petterroea, on 30 April 2012 - 07:18 PM, said:
file = fs.open("filenname", "r") -- r = read only correctPass = file:read() file:close()Then you can do
write("Password: ") if read("*") == correctPass then --your code end
Edited by ComputerCraftFan11, 01 May 2012 - 05:39 PM.
Posted 03 September 2012 - 11:03 AM
Posted 15 May 2013 - 06:21 AM
0 members, 1 guests, 0 anonymous users