umm i was wanderin what "break" is used for...i've seen it in many scripts and here's an example of what im talkiing about :
SCAR Code:if (TimeFromMark(HGMark) > 15000) then Break;
can sum1 thoroughly explain wat its used for?
umm i was wanderin what "break" is used for...i've seen it in many scripts and here's an example of what im talkiing about :
SCAR Code:if (TimeFromMark(HGMark) > 15000) then Break;
can sum1 thoroughly explain wat its used for?
It brings you out of a repeat.
If it finds the color, it is told to stop repeating.SCAR Code:repeat
Whatever;
if (GetColor(100, 100) = 0) then
Break;
until(false);
It can also be called in things like
SCAR Code:for i:= 1 to 100 do
begin
Whatever;
if (GetColor(100, 100) = 0) then
Break;
end;
And the last way is
SCAR Code:while LoggedIn do
begin
Whatever;
if (GetColor(100, 100) = 0) then
Break;
end;
There are currently 1 users browsing this thread. (0 members and 1 guests)