- Joined
- Oct 31, 2017
- Messages
- 4
Hiho,
I get syntax errors on these lines of simple globals declaration:

I know in vanilla editor there can only be one globals block, but I'm using WEX and I thought it somehow merges it to the precompiler.
Is there a way I don't have to use the variables-editor from WE? Maybe disabling the syntax check(how?
)
Thanks in advance,
Beer
EDIT: Also is there a way to init a unit array in a loop by increment the unit ID +1?
like:
or something?
I get syntax errors on these lines of simple globals declaration:

I know in vanilla editor there can only be one globals block, but I'm using WEX and I thought it somehow merges it to the precompiler.
Is there a way I don't have to use the variables-editor from WE? Maybe disabling the syntax check(how?
Thanks in advance,
Beer
EDIT: Also is there a way to init a unit array in a loop by increment the unit ID +1?
like:
Code:
local integer index = 1
local integer unit_id = 1
loop
set udg_units[index] = unit_id
set index = index+1
set unit_id = unit_id+1
exitwhen index = 10
endloop
or something?
Last edited: