Achmed Posted September 25, 2014 Report Share Posted September 25, 2014 I keep getting this rpt error when trading. Not sure if its buying or selling but it does not show for every trade. Is it a problem with single currency? 11:16:21 "EPOCH SERVERTRADE: Player: Achmed (XXXXXXXXXXXXXXXXX) sold a Coins in/at Trader City Branibor for <null>x <null>" 11:16:21 Error in expression <urrency = _this select 5; _qty = _this select 6; _clientID = owner _player; _p> 11:16:21 Error position: <select 6; _clientID = owner _player; _p> 11:16:21 Error Zero divisor 11:16:21 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 9 this is my server_traderobject.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"; }; Link to comment Share on other sites More sharing options...
Zupa Posted September 25, 2014 Report Share Posted September 25, 2014 Please try to read the great library or read any topics before you ask this stuff, This and the previous topic you made are already handled before you asked them Link to comment Share on other sites More sharing options...
Achmed Posted September 25, 2014 Author Report Share Posted September 25, 2014 Apologies. Had a look through topic titles but never read that topic. Will have a look. Ta Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now