Posted 29 April 2012 - 01:33 AM
how to add an interface like the one used by other better cc programs
Edited on 30 April 2012 - 01:14 AM
if answer == "yes" then
print("virus found")
sleep(1)
print("start antivirus")
repeat
io.write("continue with this operation (yes/no)? ")
local answer = io.read()
if answer == "yes" then
print("loading.")
sleep(1)
print("loading..")
elseif answer == "no"
print("minedows offline")
end
until answer=="yes" or answer=="no"
Try doing thisprint("virus found") sleep(1) print("start antivirus") repeat io.write("continue with this operation (yes/no)? ") local answer = io.read() if answer == "yes" then print("loading.") sleep(1) print("loading..") elseif answer == "no" print("minedows offline") end until answer=="yes" or answer=="no"
bios:206: [string "lock5"]:62: 'then' expected
Try doing thisprint("virus found") sleep(1) print("start antivirus") repeat io.write("continue with this operation (yes/no)? ") local answer = io.read() if answer == "yes" then print("loading.") sleep(1) print("loading..") elseif answer == "no" print("minedows offline") end until answer=="yes" or answer=="no"
helpbios:206: [string "lock5"]:62: 'then' expected
print("minedows offline")
elseif answer == "no" then
Sorry I missed a then change to thiselseif answer == "no" then