Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2013-11-03 22:23        
     
I've been working on a custom edit of ACE Insurgency 1.5 (Takistan) for my unit. Out of nowhere I started getting the following error when I'd load into preview or MP (copied from RPT)

Error in expression <} else { _result = []; };
{
if (!isNil _x) then {
_plr = call compile _x;
if (!>
Error position: <_x) then {
_plr = call compile _x;
if (!>
Error Undefined variable in expression: _x
File C:\Users\NyteKeller\Documents\ArmA 2 Other Profiles\MAJ%20J%2e%20France\missions\ace_insurgency1_50.Takistan\common\functions.sqf, line 89

Following is the relevant code section from common\functions.sqf

#define nearestWeapons(V,W,X,Y,Z) ([V,W,X,Y,Z] call nearestWeapons)

groupMembers = {
private ["_result","_plr","_alive","_type"];
_alive = _this select 0;
_type = _this select 1;

if (_type == "count") then { _result = 0; } else { _result = []; };
{
if (!isNil _x) then {
_plr = call compile _x;
if (!isNull _plr) then {
if ((alive _plr && !isDead(_plr)) || !_alive) then {
if (_type == "count") then { _result = _result + 1; } else { _result = _result + [_plr]; };
};
};
};
} forEach (squadUnitStrings(squadString(player))-[player]);
_result
};


I have no idea what is going on. I've been working on this for 27 hours straight now and just as I was about to finish (was putting finishing touches on the FOB) this started happening and I can't stop it. Please help me.