05-10-2016, 07:24 PM
This works as expected in the init sqf (i.e., nothing hints)
Code:
if ("test" != "test") then {
hint "IN IF";
};
However, when using an event in the init of a unit:
Code:
"this addEventHandler ["killed", {_this exec "RandFramework\CivKilled.sqf"}]"
my CivKilled.sqf file simply has the statements above (removed all code to help debug this)
yet, I am now seeing the hint "IN IF"?
I do get a small error shown from FHQDebug
Code:
'|#|};' Error Missing {
and when looking at the rpt file, this is the only clue.
Code:
18:02:50 Error in expression <};>
18:02:50Â Error position: <};>
18:02:50Â Error Missing {
now, when I empty my CivKilled.sqf file, I get no error messages...
This is my current CivKilled.sqf content:
Code:
_killed = _this select 0;
_killer = _this select 1;
if ("test" != "test") then {
hint "IN IF";
};
tried without the top two lines and still get the error... but no error when empty... starting to think the sqf file that gets called from an eventHandler needs to have something more? but am not finding anything online