Is there anyway to -
Help ploxSimba Code:procedure sfhsdibsi
begin
if someshit happens then
begin
dealwiththat
loopbacktobeginning of procedure
end;
end;![]()
Is there anyway to -
Help ploxSimba Code:procedure sfhsdibsi
begin
if someshit happens then
begin
dealwiththat
loopbacktobeginning of procedure
end;
end;![]()
Label's, i think
why not just stick the whole thing in a repeat?
Try something like this:
Simba Code:procedure Recursion;
begin
if test then
begin
//stuff....
Recursion;
end;
end;
This is why I use .Loc system.
(Scripts outdated until I update for new SRL changes)
AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
Summer = me busy, won't be around much.
that thread has a good example for label's they dont get used often
http://villavu.com/forum/showthread.php?t=35035
just saying![]()
I don't recommend doing this. With recursion it would use more memory and it will finish the procedure after the recursion is done. As far as I know you should only use recursion when you have to program a varying amount of loops inside loops.
like..
Simba Code:for
for
for
for
...
Last edited by weequ; 01-26-2012 at 12:48 AM.
Last edited by Inception; 01-26-2012 at 12:52 AM. Reason: Added code
Last edited by weequ; 01-26-2012 at 01:03 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)