Jump to content

Persei

Member
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Persei

  1. With a menu call has understood has removed
    From fn_selfActions.sqf
    If (_PlotsmarkersNear == 0) then {

    };
    Only now two menus that is inconvenient but nonlethal.

    I will not understand what action should occur by a call how many I press that does not occur.

    if (s_player_plot_take_ownership < 0) then {
                if (DZE_PlotOwnership) then {
                    _isowner = [player, _cursorTarget] call FNC_check_owner;
                    If (( _isowner select 0 )) then{
                        s_player_plot_take_ownership = player addAction ["Take plot items ownership", "Custom\A_Plot_for_Life\Action\plot_take_ownership.sqf", "", 1, false];
                    };
                };
            };

    Here which some errors I cannot find where they.

     

    Error in expression <_bank_dialog2 = -1;
    player removeAction s_player_packOBJ;
    s_player_packOBJ = -1;>
      Error position: <s_player_packOBJ;
    s_player_packOBJ = -1;>
      Error Undefined variable in expression: s_player_packobj
    File mpmissions\__CUR_MP.Sauerland\custom\compile\fn_selfActions.sqf, line 1017

     

    Error in expression <hen {
    _losCheck = 0;
    _cantSee = [_agent,_target] call dayz_losCheck;
    };
    >
      Error position: <_target] call dayz_losCheck;
    };
    >
      Error Undefined variable in expression: _target
    Error in expression < = alive _agent;
    _targetPos = getPosATL _target;
    
    
    
    _agent moveTo _targetPos;
    _a>
      Error position: <_target;
    
    
    
    _agent moveTo _targetPos;
    _a>
      Error Undefined variable in expression: _target
    Error in expression < = alive _agent;
    _targetPos = getPosATL _target;
    
    
    
    _agent moveTo _targetPos;
    _a>
      Error position: <_target;
    
    
    
    _agent moveTo _targetPos;
    _a>
      Error Undefined variable in expression: _target
    Error in expression <hen {
    _losCheck = 0;
    _cantSee = [_agent,_target] call dayz_losCheck;
    };
    >
      Error position: <_target] call dayz_losCheck;
    };
    >
      Error Undefined variable in expression: _target
    Error in expression < = alive _agent;
    _targetPos =
     
  2. As did not try it was impossible to combine on the server with additions. Therefore has begun all with zero on the server with CS 3.0. Has united all works ID in a raft remains also constructions. Only I will not understand where was mistaken some times has checked up the raft radius does not work a line is same always I press and site borders do not vanish. Errors in RPT are not present. Thanks for addition very necessary thing.

  3. Combined this script with 3.0 SC errors in the server not in the client only

    Error in expression <ge='ZSC\gui\Money.paa'/>", [Money] call BIS_fnc_numberText];
    _vitals ctrlCommit >
    Error position: <BIS_fnc_numberText];
    _vitals ctrlCommit >
    Error Undefined variable in expression: bis_fnc_numbertext
    File mpmissions\__CUR_MP.Sauerland\ZSC\compiles\playerHud.sqf, line 8

    now nakryvaya safes don't even have that menu, also have cars and dealers

  4.  
    Zdrastvuvyte I work only a trader of food and goods medication.window product empty , not what to buy and sell , and RPT errors.Map Saurelend OwerPoch + infistar
    Error in expression <bAdd [7401,  _x select 3];
    lbSetPicture [7401, _index, _x select 4 ];
    }count Z_S>
      Error position: <[7401, _index, _x select 4 ];
    }count Z_S>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillSellList.sqf, line 5
    Error in expression <bAdd [7401,  _x select 3];
    lbSetPicture [7401, _index, _x select 4 ];
    }count Z_S>
      Error position: <[7401, _index, _x select 4 ];
    }count Z_S>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillSellList.sqf, line 5
    Error in expression <lbAdd [7402, _x select 3];
    lbSetPicture [7402, _index,  _x select 4];
    }count Z_S>
      Error position: <[7402, _index,  _x select 4];
    }count Z_S>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillSellingList.sqf, line 5
    Error in expression <lbAdd [7402, _x select 3];
    lbSetPicture [7402, _index,  _x select 4];
    }count Z_S>
      Error position: <[7402, _index,  _x select 4];
    }count Z_S>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillSellingList.sqf, line 5
    Error in expression <dd [7402, _temp select 3];
    lbSetPicture [7402, _index2, _temp select 4];
    call Z_>
      Error position: <[7402, _index2, _temp select 4];
    call Z_>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_pushItemToList.sqf, line 11
    Error in expression <dd [7402, _temp select 3];
    lbSetPicture [7402, _index2, _temp select 4];
    call Z_>
      Error position: <[7402, _index2, _temp select 4];
    call Z_>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_pushItemToList.sqf, line 11
    Error in expression <d [7401,  _temp select 3];
    lbSetPicture [7401, _index2, _temp select 4];
    call Z_>
      Error position: <[7401, _index2, _temp select 4];
    call Z_>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_removeItemFromList.sqf, line 11
    Error in expression <d [7401,  _temp select 3];
    lbSetPicture [7401, _index2, _temp select 4];
    call Z_>
      Error position: <[7401, _index2, _temp select 4];
    call Z_>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_removeItemFromList.sqf, line 11
    Error in expression <select 9,_temp select 3]];
    lbSetPicture [7422, _index2, _temp select 4];
    call Z_>
      Error position: <[7422, _index2, _temp select 4];
    call Z_>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_toBuyingList.sqf, line 9
    Error in expression <select 9,_temp select 3]];
    lbSetPicture [7422, _index2, _temp select 4];
    call Z_>
      Error position: <[7422, _index2, _temp select 4];
    call Z_>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_toBuyingList.sqf, line 9
    Error in expression <bAdd [7421,  _x select 3];
    lbSetPicture [7421, _index, _x select 4 ];
    }count Z_B>
      Error position: <[7421, _index, _x select 4 ];
    }count Z_B>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillBuyableList.sqf, line 4
    Error in expression <bAdd [7421,  _x select 3];
    lbSetPicture [7421, _index, _x select 4 ];
    }count Z_B>
      Error position: <[7421, _index, _x select 4 ];
    }count Z_B>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillBuyableList.sqf, line 4
    Error in expression <lbAdd [7422, _x select 3];
    lbSetPicture [7422, _index,  _x select 4];
    }count Z_B>
      Error position: <[7422, _index,  _x select 4];
    }count Z_B>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillBuyingList.sqf, line 4
    Error in expression <lbAdd [7422, _x select 3];
    lbSetPicture [7422, _index,  _x select 4];
    }count Z_B>
      Error position: <[7422, _index,  _x select 4];
    }count Z_B>
      Error Missing ;
    File mpmissions\__CUR_MP.Sauerland\scripts\advancedTrading\functions\z_at_fillBuyingList.sqf, line 4

     

  5. The fact is that I am on the server was 8 wheels and I decided it ispravit.No fully working since I did not fix nashol I had to collect all that is here in the forum . Maybe someone else has a right solution to this problem , I would be very grateful.

  6. "HitHull" Without this option was not a body.And the parameters are stored in dayz_code/config.bin

    class RepairParts : AllVehicles


    {
    class HitEngine {
    part = "PartEngine";
    };
    class HitRGlass {
    part = "PartGlass";
    };
    class HitLGlass {
    part = "PartGlass";
    };
    class HitBody {
    part = "PartGeneric";
    };
    class HitFuel {
    part = "PartFueltank";
    };
    class HitLFWheel {
    part = "PartWheel";
    };
    class HitRFWheel {
    part = "PartWheel";
    };
    class HitLF2Wheel {
    part = "PartWheel";
    };
    class HitRF2Wheel {
    part = "PartWheel";
    };
    class HitLMWheel {
    part = "PartWheel";
    };
    class HitRMWheel {
    part = "PartWheel";
    };
    class HitLBWheel {
    part = "PartWheel";
    };
    class HitRBWheel {
    part = "PartWheel";
    };
    class HitFWheel {
    part = "PartWheel";
    };
    class HitBWheel {
    part = "PartWheel";
    };
    class wheel_1_damper {
    part = "PartWheel";
    };
    class wheel_2_damper {
    part = "PartWheel";
    };
    class HitGlass1 {
    part = "PartGlass";
    };
    class HitGlass2 {
    part = "PartGlass";
    };
    class HitGlass3 {
    part = "PartGlass";
    };
    class HitGlass4 {
    part = "PartGlass";
    };
    class HitGlass5 {
    part = "PartGlass";
    };
    class HitGlass6 {
    part = "PartGlass";
    };
    class HitVRotor {
    part = "PartGeneric";
    };
    class HitHRotor {
    part = "PartVRotor";
    };
    class HitAvionics {
    part = "PartGeneric";
    };
    class HitMissiles {
    part = "PartGeneric";
    };
    class HitHull {
    part = "PartGeneric";
    };
    };

    corrected code

    private ["_part","_cancel","_color","_allFixed","_percent","_string","_handle","_damage","_cmpt","_vehicle","_hitpoints"];




    _vehicle = _this select 3;

    {dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
    // dayz_myCursorTarget = _vehicle;

    if (((typeof _vehicle) isKindOf "Car") and !((typeof _vehicle) isKindOf "Truck")) then {
    _hitpoints = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitBody","HitFuel","HitEngine"];
    };

    if ((typeof _vehicle) isKindOf "Truck") then {
    _hitpoints = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitLMWheel","HitRMWheel","HitBoby","HitFuel","HitEngine"];
    };

    if ((typeof _vehicle) isKindOf "Motorcycle") then {
    _hitpoints = ["HitGlass1","HitGlass2","HitFWheel","HitBWheel","HitBody","HitFuel","HitEngine"];
    };

    if ((typeof _vehicle) isKindOf "Bike") then {
    _hitpoints = ["HitLFWheel","HitLBWheel"]
    };

    if (((typeof _vehicle) isKindOf "ATV_US_EP1") or ((typeof _vehicle) isKindOf "ATV_CZ_EP1")) then {
    _hitpoints = ["HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitBody","HitFuel","HitEngine"]
    };

    if ((typeof _vehicle) isKindOf "Helicopter") then {
    _hitpoints = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitHull","HitVRotor","HitHRotor","HitAvionics","HitMissiles","HitEngine"];
    };

    if ((typeof _vehicle) isKindOf "Plane") then {
    _hitpoints = ["HitHull"];
    };

    //_allFixed = true;
    //_hitpoints = _vehicle call vehicle_getHitpoints;


    {
    _damage = [_vehicle,_x] call object_getHit;
    _part = "PartGeneric";

    //change "HitPart" to " - Part" rather than complicated string replace
    _cmpt = toArray (_x);
    _cmpt set [0,20];
    _cmpt set [1,toArray ("-") select 0];
    _cmpt set [2,20];
    _cmpt = toString _cmpt;

    if(["Engine",_x,false] call fnc_inString) then {
    _part = "PartEngine";
    };

    if(["HRotor",_x,false] call fnc_inString) then {
    _part = "PartVRotor"; //yes you need PartVRotor to fix HRotor LOL
    };

    if(["Fuel",_x,false] call fnc_inString) then {
    _part = "PartFueltank";
    };

    if(["Hull",_x,false] call fnc_inString) then {
    _part = "PartGeneric";
    };

    if(["Body",_x,false] call fnc_inString) then {
    _part = "PartGeneric";
    };

    if(["Wheel",_x,false] call fnc_inString) then {
    _part = "PartWheel";
    };

    if(["Glass",_x,false] call fnc_inString) then {
    _part = "PartGlass";
    };

    // get every damaged part no matter how tiny damage is!
    if (_damage > 0) then {

    _allFixed = false;
    _color = "color='#ffff00'"; //yellow
    if (_damage >= 0.5) then {_color = "color='#ff8800'";}; //orange
    if (_damage >= 0.9) then {_color = "color='#ff0000'";}; //red

    _percent = round(_damage*100);
    _string = format["Repair%1 (%3 %4)",_cmpt,_color,_percent,"%"]; //Repair - Part
    _handle = dayz_myCursorTarget addAction [_string, "\z\addons\dayz_code\actions\repair.sqf",[_vehicle,_part,_x], 0, false, true, "",""];
    s_player_repairActions set [count s_player_repairActions,_handle];
    };

    } count _hitpoints;
    if (_allFixed) then {
    _vehicle setDamage 0;
    };

    if(count _hitpoints > 0 ) then {

    _cancel = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_CANCEL", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false, "",""];
    s_player_repairActions set [count s_player_repairActions,_cancel];

    s_player_repair_crtl = 1;
    };

  7. private ["_part","_cancel","_color","_allFixed","_percent","_string","_handle","_damage","_cmpt","_vehicle","_hitpoints"];
    
    _vehicle = _this select 3;
    
    {dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
    // dayz_myCursorTarget = _vehicle;
    
    if (((typeof _vehicle) isKindOf  "Car") and !((typeof _vehicle) isKindOf  "Truck")) then {
        _hitpoints = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitBody","HitFuel","HitEngine"];
    };
       
    if (((typeof _vehicle) isKindOf  "Motorcycle")) then {
        _hitpoints = ["HitGlass1","HitGlass2","HitFWheel","HitBWheel","HitBody","HitFuel","HitEngine"];
    };
       
    if ((typeof _vehicle) isKindOf  "Truck") then {
        _hitpoints = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitLMWheel","HitRMWheel","HitBody","HitFuel","HitEngine"];
    };
    
    if ((typeof _vehicle) isKindOf  "Helicopter") then {
        _hitpoints = ["HitRGlass","HitLGlass","HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitHull","HitMissiles","HitAvionics","HitHRotor","PartVRotor","HitEngine"];
    };
    
    if ((typeof _vehicle) isKindOf  "Plane") then {
        _hitpoints = ["HitHull"];
    };
    
    //_allFixed = true;
    //_hitpoints = _vehicle call vehicle_getHitpoints;
    
    {
    _damage = [_vehicle,_x] call object_getHit;
    _part = "PartGeneric";
    
    //change "HitPart" to " - Part" rather than complicated string replace
    _cmpt = toArray (_x);
    _cmpt set [0,20];
    _cmpt set [1,toArray ("-") select 0];
    _cmpt set [2,20];
    _cmpt = toString _cmpt;
    
    if(["Engine",_x,false] call fnc_inString) then {
    _part = "PartEngine";
    };
    
    if(["HRotor",_x,false] call fnc_inString) then {
    _part = "PartVRotor"; //yes you need PartVRotor to fix HRotor LOL
    };
    
    if(["Fuel",_x,false] call fnc_inString) then {
    _part = "PartFueltank";
    };
    
    if(["Body",_x,false] call fnc_inString) then {
    _part = "PartGeneric";
    };
    
    if(["Hull",_x,false] call fnc_inString) then {
    _part = "PartGeneric";
    };
    
    if(["Missiles",_x,false] call fnc_inString) then {
    _part = "PartGeneric";
    };
    
    if(["VRotor",_x,false] call fnc_inString) then {
    _part = "PartGeneric";
    };
    
    if(["Wheel",_x,false] call fnc_inString) then {
    _part = "PartWheel";
    };
    
    if(["Glass",_x,false] call fnc_inString) then {
    _part = "PartGlass";
    };
    
    // get every damaged part no matter how tiny damage is!
    if (_damage > 0) then {
    
    //_allFixed = false;
    _color = "color='#ffff00'"; //yellow
    if (_damage >= 0.5) then {_color = "color='#ff8800'";}; //orange
    if (_damage >= 0.9) then {_color = "color='#ff0000'";}; //red
    
    _percent = round(_damage*100);
    _string = format["<t %2>Repair%1 (%3 %4)</t>",_cmpt,_color,_percent,"%"]; //Repair - Part
    _handle = dayz_myCursorTarget addAction [_string, "\z\addons\dayz_code\actions\repair.sqf",[_vehicle,_part,_x], 0, false, true, "",""];
    s_player_repairActions set [count s_player_repairActions,_handle];
    };
    
    } count _hitpoints;
    //if (_allFixed) then {
    //_vehicle setDamage 0;
    //};
    
    if(count _hitpoints > 0 ) then {
    
    _cancel = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_CANCEL", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false, "",""];
    s_player_repairActions set [count s_player_repairActions,_cancel];
    
    s_player_repair_crtl = 1;
    };
    

    Little poked corrected but not all tell me where the error.

  8. How to implement danoe reshenie.Server OwerPoch 1.0.5.1+0.2.5.

    contents repair_vehicle.sqf

    private ["_part","_cancel","_color","_allFixed","_percent","_string","_handle","_damage","_cmpt","_vehicle","_hitpoints"];
    
    _vehicle = _this select 3;
    
    {dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
    // dayz_myCursorTarget = _vehicle;
    
    _allFixed = true;
    _hitpoints = _vehicle call vehicle_getHitpoints;
    
    {			
    	_damage = [_vehicle,_x] call object_getHit;
    	_part = "PartGeneric";
    
    	//change "HitPart" to " - Part" rather than complicated string replace
    	_cmpt = toArray (_x);
    	_cmpt set [0,20];
    	_cmpt set [1,toArray ("-") select 0];
    	_cmpt set [2,20];
    	_cmpt = toString _cmpt;
    	
    	if(["Engine",_x,false] call fnc_inString) then {
    		_part = "PartEngine";
    	};
    		
    	if(["HRotor",_x,false] call fnc_inString) then {
    		_part = "PartVRotor"; //yes you need PartVRotor to fix HRotor LOL
    	};
    
    	if(["Fuel",_x,false] call fnc_inString) then {
    		_part = "PartFueltank";
    	};
    
    	if(["Wheel",_x,false] call fnc_inString) then {
    		_part = "PartWheel";
    	};	
    		
    	if(["Glass",_x,false] call fnc_inString) then {
    		_part = "PartGlass";
    	};
    
    	// get every damaged part no matter how tiny damage is!
    	if (_damage > 0) then {
    	
    		_allFixed = false;
    		_color = "color='#ffff00'"; //yellow
    		if (_damage >= 0.5) then {_color = "color='#ff8800'";}; //orange
    		if (_damage >= 0.9) then {_color = "color='#ff0000'";}; //red
    
    		_percent = round(_damage*100);
    		_string = format["<t %2>Repair%1 (%3 %4)</t>",_cmpt,_color,_percent,"%"]; //Repair - Part
    		_handle = dayz_myCursorTarget addAction [_string, "\z\addons\dayz_code\actions\repair.sqf",[_vehicle,_part,_x], 0, false, true, "",""];
    		s_player_repairActions set [count s_player_repairActions,_handle];
    	};
    
    } count _hitpoints;
    if (_allFixed) then {
    	_vehicle setDamage 0;
    };
    
    if(count _hitpoints > 0 ) then {
    
    	_cancel = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_CANCEL", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false, "",""];
    	s_player_repairActions set [count s_player_repairActions,_cancel];
    
    	s_player_repair_crtl = 1;
    };
    
    
  9. Prompt how to realise charge of money in + instead of - for murder AI. To make a smoke in prize-winning boxes one colour and that very strongly falls FPS from their quantity and colours. To clean radio radio01.ogg. To hide the notification in game HC about that that it does with AI. Excuse for my English.

  10. У меня проблема с обновлением координат транспорта едеш они не отмечаются как выёдеш из неё или колесо пробьёш они тут же обновляются.

    At me a problem with updating of co-ordinates of transport Goes they are not marked as выёдеш from it or a wheel Will break they are there and then updated.Litter for my English.

×
×
  • Create New...