Thrice
2006-05-29 11:31:30
I was bored working on a procedure so a user could specify how long the script would run I finally got it to work but not as i would like the way i got it to work is that you will have to change the amount of hours and minutes in the procedure if anyone wants to change any of it be my guest…
procedure minutes;
var
m : integer;
begin
m:=0;
if ((m < 61)) then
begin
Wait(m*60000);
end else
Writeln('Invalid Minute Parameters.');
end;
procedure hours;
var
h : integer;
begin
h:=1;
if ((h < 25)) then
begin
Wait(h*600000);
end else
Writeln('Invalid Hour Parameters.');
end;