Hi i need help with something. I'm making a script and i want to put at the end of the script to repeat until all the players in the declare procedure are false.
Could someone please tell me how i could write that in my script Thanks Guys.
Hi i need help with something. I'm making a script and i want to put at the end of the script to repeat until all the players in the declare procedure are false.
Could someone please tell me how i could write that in my script Thanks Guys.
SCAR Code:function NoActivePlayers : Boolean;
var
I : Integer;
begin
for I := 0 to (HowManyPlayers - 1) do
if Players[I].Active then
Exit;
Result := True;
end;
SCAR Code:repeat
DoWhatever;
until(NoActivePlayers);
I'm a bit tired so someone correct me if I'm wrong.
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
EDIT: nvm =]
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
There are currently 1 users browsing this thread. (0 members and 1 guests)