From 376befd613496c271783118f5fd987ff4f9f77b1 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Wed, 3 Aug 2016 13:38:09 -0400 Subject: [PATCH] Minor Advanced Trading string semantics changes #1724 --- .../AdvancedTrading/functions/z_at_allowBuying.sqf | 6 +++++- SQF/dayz_code/stringtable.xml | 11 ++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_allowBuying.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_allowBuying.sqf index 69f31c1a4..ff019e150 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_allowBuying.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_allowBuying.sqf @@ -154,7 +154,11 @@ if (_selection == 0) then { //backpack if (_allowedMags >= _toBuyTotalMags) then { _check2 = true; } else { - systemChat format[localize "STR_EPOCH_TRADE_BAG_MAGS", _allowedMags]; + if (_allowedMags > 0) then { + systemChat format[localize "STR_EPOCH_TRADE_BAG_MAGS", _allowedMags]; + } else { + systemChat localize "STR_EPOCH_TRADE_BACKPACK_FULL"; + }; }; if (_toBuyBags < 1) then { // A backpack can not hold any backpacks diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 9f36bc095..22c0f4940 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -16133,10 +16133,10 @@ Нет информации - No items in buy list + No items in buying list - No items in sell list + No items in selling list Нет ничего на продажу @@ -16209,11 +16209,11 @@ Total backpack space exceeded. - Only %1 mags will fit into your backpack. + You can only buy %1 magazines into your backpack. В рюкзак поместится предметов: %1. - Only %1 weapons will fit into your backpack. + You can only buy %1 weapons into your backpack. В рюкзак поместится оружия: %1. @@ -16291,9 +16291,6 @@ Selling from %1. - - Total space succeeded: Mag=1, Tool=1, Side=5, Primary=10 slots and your bag capacity is %1 where you tried %2 slots. - Some change was added to your backpack.