Jump to content
  • 0

Wai Error - 112555


Renegade2k6

Question

Error Message from RPT

10:06:59 Error in expression <illedat", time];
};
if ((_mission) AND (clean_running_mission)) then {
_veh setD>
10:06:59   Error position: <clean_running_mission)) then {
_veh setD>
10:06:59   Error Undefined variable in expression: clean_running_mission
10:06:59 File z\addons\dayz_server\WAI\compile\vehicle_monitor.sqf, line 17
10:06:59 Error in expression <illedat", time];
};
if ((_mission) AND (clean_running_mission)) then {
_veh setD>
10:06:59   Error position: <clean_running_mission)) then {
_veh setD>
10:06:59   Error Undefined variable in expression: clean_running_mission
10:06:59 File z\addons\dayz_server\WAI\compile\vehicle_monitor.sqf, line 17
10:07:00 Error in expression <illedat", time];
};
if ((_mission) AND (clean_running_mission)) then {
_veh setD>
10:07:00   Error position: <clean_running_mission)) then {
_veh setD>
10:07:00   Error Undefined variable in expression: clean_running_mission
10:07:00 File z\addons\dayz_server\WAI\compile\vehicle_monitor.sqf, line 17

File it says the error is in

if (!isServer) exitWith {};
private ["_mission","_veh"];
_veh = _this select 0;
if (count _this == 2) then {
	_mission = _this select 1;
} else {
	_mission = false;
};
waitUntil { count crew _veh > 0};
while {(alive _veh) and ({alive _x} count crew _veh > 0)} do {
	_veh setVehicleAmmo 1;
	_veh setFuel 1;
	if ({alive _x} count crew _veh == 0) then {
		_veh setDamage 1;
		_veh setVariable ["killedat", time];
	};
	if ((_mission) AND (clean_running_mission)) then {
		_veh setDamage 1;
		_veh setVariable ["killedat", time];
	};
	sleep 30;
};
_veh setDamage 1;
_veh setVariable ["killedat", time];

Any Help Appreciated Cheers

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
 

Error Message from RPT

10:06:59 Error in expression <illedat", time];
};
if ((_mission) AND (clean_running_mission)) then {
_veh setD>
10:06:59 Error position: <clean_running_mission)) then {
_veh setD>
10:06:59 Error Undefined variable in expression: clean_running_mission
10:06:59 File z\addons\dayz_server\WAI\compile\vehicle_monitor.sqf, line 17
10:06:59 Error in expression <illedat", time];
};
if ((_mission) AND (clean_running_mission)) then {
_veh setD>
10:06:59 Error position: <clean_running_mission)) then {
_veh setD>
10:06:59 Error Undefined variable in expression: clean_running_mission
10:06:59 File z\addons\dayz_server\WAI\compile\vehicle_monitor.sqf, line 17
10:07:00 Error in expression <illedat", time];
};
if ((_mission) AND (clean_running_mission)) then {
_veh setD>
10:07:00 Error position: <clean_running_mission)) then {
_veh setD>
10:07:00 Error Undefined variable in expression: clean_running_mission
10:07:00 File z\addons\dayz_server\WAI\compile\vehicle_monitor.sqf, line 17

File it says the error is in

if (!isServer) exitWith {};
private ["_mission","_veh"];
_veh = _this select 0;
if (count _this == 2) then {
    _mission = _this select 1;
} else {
    _mission = false;
};
waitUntil { count crew _veh > 0};
while {(alive _veh) and ({alive _x} count crew _veh > 0)} do {
    _veh setVehicleAmmo 1;
    _veh setFuel 1;
    if ({alive _x} count crew _veh == 0) then {
        _veh setDamage 1;
        _veh setVariable ["killedat", time];
    };
    if ((_mission) AND (clean_running_mission)) then {
        _veh setDamage 1;
        _veh setVariable ["killedat", time];
    };
    sleep 30;
};
_veh setDamage 1;
_veh setVariable ["killedat", time];

Any Help Appreciated Cheers

 

Did you ever figure this out?

Link to comment
Share on other sites

  • 0

What version are you using?

Looking at https://github.com/WilliamJBrown/Re-Worked-WAI-0.17 I see the (global?) variable clean_running_mission defined at what I deem to be very early in the setup process, so it should be defined (and thus referable) at the place where the warning is thrown.

 

This is assimung that sqf declares any variable that is not defined as private as global (which is a shitty thing to do ;-).

 

Note that you can drag the complete folder WAI into Notepad++ and search in all opened files....

Link to comment
Share on other sites

  • 0

What version are you using?

Looking at https://github.com/WilliamJBrown/Re-Worked-WAI-0.17 I see the (global?) variable clean_running_mission defined at what I deem to be very early in the setup process, so it should be defined (and thus referable) at the place where the warning is thrown.

 

This is assimung that sqf declares any variable that is not defined as private as global (which is a shitty thing to do ;-).

 

Note that you can drag the complete folder WAI into Notepad++ and search in all opened files....

I didn't even realise there was another update thanks :D

 

When installing wai make sure the Init.sqf is renamed to init.sqf so there is no capital on the first letter and the script you add to your server_monitor.sqf works.

Cheers guys will play with it tonight

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...