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

missionNamespace setVariable ... #20

Closed Ragebone closed 8 years ago

Ragebone commented 8 years ago

version 1.0.5 : "there is a syntax error. ,,command,Identifier,LANG_VAR,String or '[' expected, got 'missionNamespace'. Error line number .. Here is the code that causes the error. missionNamespace setVariable ["client_fnc_" + _fileName, _function]; example 3! https://community.bistudio.com/wiki/setVariable this time, i'm not as stupid as the last time! :D cheers

kayler-renslow commented 8 years ago

I opened this up in the editor and this doesn't seem to be an issue for me. Can you post the entire file's code?

Ragebone commented 8 years ago

it was a missing bracket that i and 3 other people overlooked. this is a good example. The error message is misleading. _func = "bla" + ("bla"; missionNamespace setVariable["bla",false];

Side note, noticed how awesom your cfgFunctions automation works. THX for that!

kayler-renslow commented 8 years ago

glad to see everything is working as intended. :)