Jump to content

Single Currency & Banking Help


Recommended Posts

Ok so new host, new map. Woo yes!

 

Not the problem. I've installed all the mods, that I had before. We switched maps from Cherno to Napf. Again that's cool.

 

However, everything seems to be working just fine, just not the "coins"...you can sell/buy stuff but it's not showing how much money you have. Looking into my RPT log and also looking where this error is, I don't understand it. 
 

 

16:29:00 Error in expression <object getVariable[(_variable + "_CHK"),_vNew];
_result = _vNew - _vOld;
_object>
16:29:00   Error position: <_vNew];
_result = _vNew - _vOld;
_object>
16:29:00   Error Undefined variable in expression: _vnew
16:29:00 File z\addons\dayz_server\init\server_functions.sqf, line 577
16:29:00 Error in expression <_killsH,_killsB,_currentModel,_humanity,_cashMoney];
 
_key call server_hiveWrite>
16:29:00   Error position: <_cashMoney];
 
_key call server_hiveWrite>
16:29:00   Error Undefined variable in expression: _cashmoney
16:29:00 File z\addons\dayz_server\compile\server_playerSync.sqf, line 189
 
 

SQL file and everything is updated and uploaded to the server. All paths are correct I'm just...lost on this

 

DayZ Server \ init \ server_functions - Lines 574 to 583 

 

 

 

server_getDiff2 =

private["_variable","_object","_vNew","_vOld","_result"];

_variable = _this select 0; _object = _this select 1;

_vNew = _object getVariable[_variable,0];
_vOld = _object getVariable[(_variable + "_CHK"),_vNew];
_result = _vNew - _vOld;
_object setVariable[(_variable + "_CHK"),_vNew];
_result
};

 

 
DayZ server \ Compile \ server_PlayerSync Lines - 185 - 193 
 
if (!isNull _character) then {

 if (alive _character) then {

//Wait for HIVE to be free
//Send request
_key = format["CHILD:201:%1:%2:%3:%4:%5:%6:%7:%8:%9:%10:%11:%12:%13:%14:%15:%16:%17:",_characterID,_playerPos,_playerGear,_playerBackp,_medical,false,false,_kills,_headShots,_distanceFoot,_timeSince,_currentState,_killsH,_killsB,_currentModel,_humanity,_cashMoney];
//diag_log ("HIVE: WRITE: "+ str(_key) + " / " + _characterID);
_key call server_hiveWrite;
};
};
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...