kayler-renslow / arma-intellij-plugin

A plugin for Intellij IDEA that allows for syntactical analysis, code inspections, and other nifty features for the SQF scripting language in Arma 3.
MIT License
41 stars 9 forks source link

while loop, "empty Element parsed in 'loop_while_2' at ofset 849 #7

Closed Ragebone closed 8 years ago

Ragebone commented 8 years ago

code:

while {(count _queryResult) == 0 } do {
        // ask for his userID
        _query = format["checkUser:%1",_steamID];
        _queryResult = [_query,2,false] call Server_fnc_callDB;
    };

its the closing bracket of the argument == 0 } that is marked as mistake with the message that is the topic. Besides that, adding commands into the argument marks the semicolon as a syntax error.

While { ... ; ... }do { ... };

https://community.bistudio.com/wiki/while

kayler-renslow commented 8 years ago

fixed for next release

Ragebone commented 8 years ago

thank you very much !