From 254fbff602824a3fd6aaa1676c1865ef82c32699 Mon Sep 17 00:00:00 2001 From: icomrade Date: Thu, 18 Feb 2016 00:24:50 -0500 Subject: [PATCH] Fix #1274 --- SQF/dayz_code/actions/player_build.sqf | 2 +- SQF/dayz_code/actions/player_build_countNearby.sqf | 2 +- SQF/dayz_epoch_b/stringtable.xml | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index bb6f101e4..5bb64d8c2 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -8,7 +8,7 @@ if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_40") , DZE_ActionInProgress = true; // disallow building if too many objects are found within 30m -if((count ((getPosATL player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];}; +if((count ((getPosATL player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(format [localize "str_epoch_player_41", DZE_PlotPole select 0]), "PLAIN DOWN"];}; _onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1; _isWater = dayz_isSwimming; diff --git a/SQF/dayz_code/actions/player_build_countNearby.sqf b/SQF/dayz_code/actions/player_build_countNearby.sqf index 2f8090ea9..7b46890f7 100644 --- a/SQF/dayz_code/actions/player_build_countNearby.sqf +++ b/SQF/dayz_code/actions/player_build_countNearby.sqf @@ -5,6 +5,6 @@ _pos = [player] call FNC_GetPos; _cnt = count (_pos nearObjects ["All",DZE_checkNearbyRadius]); if (_cnt >= DZE_BuildingLimit) exitWith { //end script if too many objects nearby DZE_ActionInProgress = false; - cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"]; + cutText [(format [localize "str_epoch_player_41", DZE_PlotPole select 0]), "PLAIN DOWN"]; }; _cnt //returns amount of total objects found nearby diff --git a/SQF/dayz_epoch_b/stringtable.xml b/SQF/dayz_epoch_b/stringtable.xml index 5c139d5e0..90ef19370 100644 --- a/SQF/dayz_epoch_b/stringtable.xml +++ b/SQF/dayz_epoch_b/stringtable.xml @@ -3117,14 +3117,14 @@ \n\nStavba již probíhá. - \n\nCannot build, too many objects within 30m. - \n\nCannot build, too many objects within 30m. - \n\nBau nicht möglich, zu viele Objekte innerhalb von 30m. - \n\nНельзя построить, слишком много объектов в пределах 30 м. + \n\nCannot build, too many objects within %1m. + \n\nCannot build, too many objects within %1m. + \n\nBau nicht möglich, zu viele Objekte innerhalb von %1m. + \n\nНельзя построить, слишком много объектов в пределах %1m. - \n\nKan niet bouwen, teveel objecten binnen 30m. - \n\nImpossible de construire, il y a trop d'objets à moins de 30m. - \n\nNelze postavit, v okruhu 30 metrů je přiliš mnoho předmětů. + \n\nKan niet bouwen, teveel objecten binnen %1. + \n\nImpossible de construire, il y a trop d'objets à moins de %1m. + \n\nNelze postavit, v okruhu %1m je přiliš mnoho předmětů. Cannot build while in a vehicle.