Brid Mayhem
2013-03-09 04:35:47
Is there to make a procedure run on the side of things constantly?
2013-03-09 04:35:47
2013-03-09 05:33:27
2013-03-09 05:38:41
From: Sjoekeloe
Read Coh3n's beginner tutorial guide: check the loop section.
2013-03-09 05:42:11
while IsChopping; do
Antiban;
2013-03-09 05:45:51
2013-03-09 05:51:49
From: Brid Mayhem
Well I mean something like this:
program Example;
procedure update;
begin;
writeln('See what I'm doing here?');
end;
procedure otherThing;
begin
//do stuff
end;
procedure otherThing2;
begin
//do stuff
end;
begin
do
update;
while
doThings;
doThings2;
end.
If you understand that.
Like have the Update method constantly running, while the other things can loop through like normal.
While (DoThingsAll = True) do
Update;
2013-03-09 05:55:13
From: Sjoekeloe
Don't know if this will work since I don't use while..do loops often.
There's probably a better way, but what about making doThings; and doThings2; in one function
(example: DoThingsAll;) and use:
While (DoThingsAll = True) do
Update;
Should work I guess :)
2013-03-09 06:37:47
2013-03-09 08:41:23
repeat
wait(100)
checkuplevel;
if containslevel then
begin
mainloop;
exit;
end;
2013-03-09 08:54:08
From: Brid Mayhem
Well I mean something like this:
program Example;
procedure update;
begin;
writeln('See what I'm doing here?');
end;
procedure otherThing;
begin
//do stuff
end;
procedure otherThing2;
begin
//do stuff
end;
begin
do
update;
while
doThings;
doThings2;
end.
If you understand that.
Like have the Update method constantly running, while the other things can loop through like normal.