mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update z_at_sellItems.sqf
This commit is contained in:
@@ -215,8 +215,8 @@ if (Z_SingleCurrency) then {
|
|||||||
|
|
||||||
if (typeName _money == "SCALAR") then {
|
if (typeName _money == "SCALAR") then {
|
||||||
if (Z_SingleCurrency) then {
|
if (Z_SingleCurrency) then {
|
||||||
_wealth = player getVariable[Z_MoneyVariable,0];
|
_wealth = player getVariable[(["cashMoney","globalMoney"] select Z_persistentMoney),0];
|
||||||
player setVariable[Z_MoneyVariable,(_wealth + _money),true];
|
player setVariable[(["cashMoney","globalMoney"] select Z_persistentMoney),(_wealth + _money),true];
|
||||||
systemChat format[localize "STR_EPOCH_TRADE_SUCCESS_CHANGE",[_money] call BIS_fnc_numberText,CurrencyName];
|
systemChat format[localize "STR_EPOCH_TRADE_SUCCESS_CHANGE",[_money] call BIS_fnc_numberText,CurrencyName];
|
||||||
} else {
|
} else {
|
||||||
_success = [_money,0,false,0,[],[],false] call Z_returnChange;
|
_success = [_money,0,false,0,[],[],false] call Z_returnChange;
|
||||||
@@ -233,4 +233,4 @@ if (typeName _money == "SCALAR") then {
|
|||||||
} else {
|
} else {
|
||||||
systemChat localize "STR_EPOCH_TRADE_DEBUG";
|
systemChat localize "STR_EPOCH_TRADE_DEBUG";
|
||||||
diag_log "Money is not a number. Something went wrong.";
|
diag_log "Money is not a number. Something went wrong.";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user