• Log in or sign up for an account here: https://www.sythe.org/login

how to use for statements in scar?

dopeness

Newcomer
Joined
May 5, 2009
Sythe Gold
0
Messages
5
usuallly its like

for(i=0; i >=this; i++)


but i cant get it to work

some 1 mind explaining how this works, thx
 
if you want the pascal (script language of SCAR) equivalent of this
for(i=0; i >=this; i++)

use something like this
Code:
var
i:integer;

begin
i:=0;
While i >=this
 begin
  Do Stuff;
  inc(i); //same as i++;
 end;
end.

(for i := 1 to number) this will iterate through the numbers whereas the While loop is conditional.
 
Runescape Gamblingrunescape gambling
Back
Top