Posted 10 December 2012 - 05:18 PM
I am trying to make a loop program eg. Loop Hello 10 2
here is the usage "Loop <Program> <Number> <Sleep>"
since im a derp i get the Error "bios:133: Expected number"
Code:
here is the usage "Loop <Program> <Number> <Sleep>"
since im a derp i get the Error "bios:133: Expected number"
Code:
local tArgs = {...}
if #tArgs < 3 then
print("Usage: Loop <Program> <Number> <Sleep>")
end
for i = 1,tArgs[2] do
shell.run(tArgs[1])
os.sleep(tArgs[3])
end