FOR loops
Posted: 13 Sep 2010, 21:22
I tried using a FOR loop (GTA2 Scripting.doc page 10, line 42) in 9/11 script so I dont need to use 4 LOWER_LEVEL commands, but it didnt work. It gets bolded in MisPad but it doesnt compile.
It displays this error:

That happens in both Official Compiler and in MisPad compiler
Viiiiiiiike
Code: Select all
[...]
EXPLODE_LARGE ( 59.5 , 201.5 , 6.0 )
EXPLODE_LARGE ( 59.5 , 201.5 , 6.0 )
FOR wtc1_collapsed = 1 TO 4
LOWER_LEVEL ( 111 , 124 ) ( 114 , 128 )
ENDFOR
CHANGE_BLOCK LID ( 111 , 124 , 2 ) NOT_FLAT NOT_FLIP 0 0 132
CHANGE_BLOCK LID ( 112 , 124 , 2 ) NOT_FLAT NOT_FLIP 0 0 133
[...]

That happens in both Official Compiler and in MisPad compiler
Viiiiiiiike
