Force save after building and maintain

This commit is contained in:
icomrade
2016-09-19 13:48:27 -04:00
parent 5f33fd3ef5
commit 91e5e875c2
4 changed files with 6 additions and 3 deletions

View File

@@ -472,6 +472,7 @@ if (_canBuild select 0) then {
_num_removed = ([player,DZE_buildItem] call BIS_fnc_invRemove); //remove item's magazine from inventory
if(_num_removed == 1) then {
call player_forceSave;
format[localize "str_build_01",_text] call dayz_rollingMessages;

View File

@@ -381,6 +381,7 @@ if (_canBuild select 0) then {
_num_removed = ([player,_item] call BIS_fnc_invRemove);
if(_num_removed == 1) then {
call player_forceSave;
format[localize "str_build_01",_text] call dayz_rollingMessages;

View File

@@ -102,6 +102,7 @@ _upgradeParts = [];
player removeMagazine _x;
};
} count _requiredParts;
call player_forceSave;
if (!_ok) exitWith {
{ player addMagazine _x; } foreach _upgradeParts;

View File

@@ -76,8 +76,8 @@ _maintain = {
if (Z_SingleCurrency) then {
player setVariable[Z_MoneyVariable,(_wealth - _amount),true];
call player_forceSave;
};
call player_forceSave;
PVDZE_maintainArea = [player,1,_this select 0];
publicVariableServer "PVDZE_maintainArea";