bardosy 158 Posted November 3 I created a group of units in SQF script and then add a killed eventHandler to all of them: { _x addEventHandler ["Killed", { params ["_unit", "_killer"]; hullaszamlalo = hullaszamlalo + 1; }]; } forEach (units _group_i): "hullaszamlalo" is a global variable, what is zero in init.sqf But when the create units script run, I got a "Invalid number in expression" error to "...o + 1;" It sounds like I cannot add one to a variable. Probably a noob mistake. Need a rubberduck to point to my noobness. Share this post Link to post Share on other sites
Schatten 289 Posted November 4 Publish initialization code of hullaszamlalo var and the full error message. 1 Share this post Link to post Share on other sites
bardosy 158 Posted November 4 OMG, you are the best rubberduck! Thank you!!! When I search for the error msg, I found out the problem: } forEach (units _group_i): It's not a comma in the end of this line. Sorry for annoying, but thank you very much!!!! 1 Share this post Link to post Share on other sites