I used to script up till v1.2 and then lost interest.
Now I'm getting back to scripting at v1.90 and I found some really nice new scripting commands, like "if" and "while" instead of those ugly "?" and "goto".
Now, when I try to use "if" in a script, the following single-line works perfectly:
if (((getMarkerPos _markername) select 0)<_MAPHALFX) then{_strowner = "R";}else{_strowner = "B";};
but when I try to indent it so it's more readable like this:
if (((getMarkerPos _markername) select 0)<_MAPHALFX) then
{
_strowner = "R";
}
else
{
_strowner = "B";
};
It gives me a "|#|};': Error Invalid Number in Expression" error.
Same happens with "while". All variables involved are declared. All lines in the script are properly ended by a semicolon.
Any help would be appreciated; I can't find anything on it in OFPEC or CM's site.