How do I tell my script to immediately end the procedure it's in and go to another procedure?
How do I tell my script to immediately end the procedure it's in and go to another procedure?
In your procedure:
Simba Code:procedure DoStuff1;
begin
FindNormalRandoms;
if (FindSomething) then
Exit; //If finds it - exits procedure then in mainloop 'DoStuff2' comes after it.
if not (FindSomething) then
begin
LookForSomething;
Wait(500);
end;
end;
procedure DoStuff2;
begin
Blahblahblah;
end;
In your mainloop (you can see it's the mainloop because it ends in an 'end.'):
Simba Code:begin
SetupSRL;
OtherStuff;
DoStuff1;
DoStuff2;
end.
May or may not work, different ways to do it also.![]()
Ultimate Guide to Making a Superb Guide | Guide to the New Forum Layout | Guide to Simba's Features!
| Ranks and Cups | Info & Requirements!| Guide to Reputation! | Guide to Posting GOOD Bug ReportsCheck out the Ultimate Guide Directory! It contains every guide ever posted on the forums.
There are currently 1 users browsing this thread. (0 members and 1 guests)