Posted 22 May 2012 - 10:25 AM
hay ppl
i have bean working on a remote flashing hello sine for my friends server and this is the code
it is suppose to tern on and blink wen it gets a 1 and tern off wen it gets a 2 but it only blinks one time
please help
i have bean working on a remote flashing hello sine for my friends server and this is the code
function hello()
print(" ")
print(" ")
print(" ")
print(" ")
print(" __ __ _______ __ __ ______")
print(" | | | | | | | | | | / ")
print(" | | | | | ____| | | | | / ____ ")
print(" | |__| | | |____ | | | | / / ")
print(" | | | | | | | | | | | |")
print(" | __ | | ____| | | | | | | | |")
print(" | | | | | |____ | | | | ____/ /")
print(" | | | | | | | | | | /")
print(" |__| |__| |_______| |__| |__| ______/")
end
rednet.open("top")
term.clear()
term.setCursorPos(1,1)
OOS = 0
while true do
C,ID,MS = os.pullEvent()
if MS == "1" then
OOS = 1
end
while OOS == 1 do
C,ID,MS = os.pullEvent()
hello()
sleep(0.5)
term.clear()
term.setCursorPos(1,1)
sleep(0.1)
if MS == "2" then
OOS = 0
end
end
end
it is suppose to tern on and blink wen it gets a 1 and tern off wen it gets a 2 but it only blinks one time
please help