Rocu Posted August 17, 2014 Report Share Posted August 17, 2014 So I get an RPT error any time someone buys or sells something: 19:28:05 "EPOCH SERVERTRADE: Player: ROCU[] (76561198046592472) bought a Unknown Vehicle in/at trader city Sabina for <null>x <null>" 19:28:05 Error in expression <urrency = _this select 5; _qty = _this select 6; _clientID = owner _player; _p> 19:28:05 Error position: <select 6; _clientID = owner _player; _p> 19:28:05 Error Zero divisor 19:28:05 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 9 Here's my server_tradeObject.sqf: private ["_player","_name","_traderid","_buyorsell","_data","_result","_key","_outcome","_clientID"]; _player = _this select 0; _traderID = _this select 1; _buyorsell = _this select 2; //0 > Buy // 1 > Sell _classname = _this select 3; _traderCity = _this select 4; _currency = _this select 5; _qty = _this select 6; _clientID = owner _player; _price = format ["%2x %1",_currency,_qty]; _name = if (alive _player) then { name _player; } else { "Dead Player"; }; if (_buyorsell == 0) then { //Buy diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) bought a %3 in/at %4 for %5", _name, (getPlayerUID _player), _classname, _traderCity, _price]; } else { //SELL diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) sold a %3 in/at %4 for %5",_name, (getPlayerUID _player), _classname, _traderCity, _price]; }; if (DZE_ConfigTrader) then { _outcome = "PASS"; } else { //Send request _key = format["CHILD:398:%1:%2:",_traderID,_buyorsell]; _data = "HiveEXT" callExtension _key; _result = call compile format ["%1",_data]; // diag_log ("TRADE: RES: "+ str(_result)); _outcome = _result select 0; }; dayzTradeResult = _outcome; if(!isNull _player) then { _clientID publicVariableClient "dayzTradeResult"; }; This happens mostly dealing with vehicles. But it's not doing it always, just sometimes someone buys something. Note that I have Zupa's Single Currency installed + Soul's custom HiveExt.dll Link to comment Share on other sites More sharing options...
0 Rocu Posted August 19, 2014 Author Report Share Posted August 19, 2014 Bump? Link to comment Share on other sites More sharing options...
0 Gr8 Posted August 20, 2014 Report Share Posted August 20, 2014 bump. same. what edits do i need in player_traderObject.sqf? Link to comment Share on other sites More sharing options...
0 (GSG) Az Posted August 20, 2014 Report Share Posted August 20, 2014 See here for the fix; https://github.com/EpochSC/SingleCurrencyBanking999/pull/1 Rocu and Glenn 2 Link to comment Share on other sites More sharing options...
0 Rocu Posted August 20, 2014 Author Report Share Posted August 20, 2014 Thanks, that solved the issue. Link to comment Share on other sites More sharing options...
0 Gr8 Posted August 24, 2014 Report Share Posted August 24, 2014 Fix for souls hive? Link to comment Share on other sites More sharing options...
0 mgm Posted September 4, 2014 Report Share Posted September 4, 2014 Fix for souls hive? bump. noone has a fix for Soul's custom hive.dll and this error below? Unknown Trader City for <null>x <null> Link to comment Share on other sites More sharing options...
Question
Rocu
So I get an RPT error any time someone buys or sells something:
Here's my server_tradeObject.sqf:
This happens mostly dealing with vehicles. But it's not doing it always, just sometimes someone buys something.
Note that I have Zupa's Single Currency installed + Soul's custom HiveExt.dll
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now