Jump to content

Skaronator

Developer
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Skaronator

  1.  

    Do this in fn_selfActions.sqf:

    	//Repairing Vehicles
    	if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1) and !_isDisallowRepair) then {
    		if (s_player_repair_crtl < 0) then {
    			dayz_myCursorTarget = _cursorTarget;
    			_menu = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_REPAIRV", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
    			if(!locked _cursorTarget) then {
    			_menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
    			s_player_repairActions set [count s_player_repairActions,_menu];
    			s_player_repairActions set [count s_player_repairActions,_menu1];
    			s_player_repair_crtl = 1;
    			};
    			};
    		} else {
    			{dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = [];
    			s_player_repair_crtl = -1;
    		};
    s_player_repairActions set [count s_player_repairActions,_menu];
    s_player_repair_crtl = 1; 

    This lines must be outside of the if (locked) check. That should be fine: http://pastebin.com/hW1Wehqy

  2. ok so if my player UID is 12345 do i do it like this ["12345"] or ["1","2","3","4","5"] 

    ["12345"] if you want more player UIDs: ["123456","654321","1241521"] etc.

     

     
    if (dayz_combat == 1) then {

    titleText ["You can't select a spawn point while in combat.", "PLAIN DOWN", 3];

    sleep 5;

    titleFadeOut 1;

    } else {

    titleText ["Spawning at selected location...", "PLAIN DOWN", 3];

                            //Base Spawn

            if ((getPlayerUID player) in ["0","0","0","0","0","0"]) exitWith {

                player setPosATL [6887.53,11411.7,0.001];

            };    

                            //Base Spawn

            if ((getPlayerUID player) in ["0","0","0","0","0"]) exitWith {

                player setPosATL [2952.6,6410.46,0.001];

            };        

    sleep 2;

    titleText ["Spawned!", "PLAIN DOWN", 3];

    sleep 2;

    titleFadeOut 1;

    };

     

    And you should use then instead of exitWith.

  3. This should work fine. Add it to your server functions 

    server_onPlayerConnect = {
    	private ["_playerUID","_playerName"];
    	_playerUID = _this select 0;
    	_playerName = _this select 1;
    
    	_message = format["PLAYER CONNECTED: %1",_playerName];
    	[nil, nil, rTitleText, _message, "PLAIN"] call RE;	
    };
    
    onPlayerConnected			{[_uid,_name] call server_onPlayerConnect;};
    
  4. "if (_status == "Objec>

    16:13:18   Error Nicht definierte Variable in Ausdruck: _result

    16:13:18 File z\addons\dayz_server\system\server_monitor.sqf, line 269

    16:13:18 Error in expression < compile format ["%1",_data];

    _status = _result select 0;

    if (_status == "Objec>

    16:13:18   Error position: <_result select 0;

    if (_status == "Objec>

    16:13:18   Error Nicht definierte Variable in Ausdruck: _result

    16:13:18 File z\addons\dayz_server\system\server_monitor.sqf, line 269

    16:13:18 Error in expression < compile format ["%1",_data];

    _status = _result select 0;

    if (_status == "Objec>

    16:13:18   Error position: <_result select 0;"

     

    Something is wrong with your Trader data in your database, be sure you're using the correct instance.

  5.  

    Awol, im pretty sure everyone is getting this:-

    13:46:29 Error in expression <;
    };
    };
    };
    diag_log ("HIVE: got " + str(_bQty) + " Epoch Objects and " + str(_vQ>
    13:46:29 Error position: <_bQty) + " Epoch Objects and " + str(_vQ>
    13:46:29 Error Undefined variable in expression: _bqty
    13:46:29 File z\addons\dayz_server\system\server_monitor.sqf, line 69
    

    Checkout this simple fix. 58988a4

×
×
  • Create New...