Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
ruslanborsk

Помагите с ошибкой

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

 

 

помагите пожалуйста кто понимает,непойму что не так в файле вот сам файл

 

if (!isServer) exitWith {};

private ["_mission","_veh"];
_veh = _this select 0;
if (count _this == 2) then {
    _mission = _this select 1;
} else {
    _mission = true;
};
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];

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

clean_running_mission

 

Неизвестная переменная.

И слово AND надо писать строчными.

Share this post


Link to post
Share on other sites



  • 0

слово and исправил но ошибка осталась,если у кого есть такой рабочий файл скиньте пожалуйста или подскажите что там надо исправить

Share this post


Link to post
Share on other sites
  • 0
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];

 

У меня так. Вроде работоспособно.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.