mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
fake trade just for logging when DZE_ConfigTrader = true
_key = format["CHILD:398:%1:%2:",_traderID,_buyorsell];
_data = "HiveEXT"
_result =
// diag_log ("TRADE: RES: "+ str(_result));
_outcome = _result select 0;
This commit is contained in:
@@ -16,13 +16,17 @@ diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) bought a %3 in/at %4 for %5"
|
||||
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) sold a %3 in/at %4 for %5",(name _player), (getPlayerUID _player), _classname, _traderCity, _price];
|
||||
};
|
||||
|
||||
//Send request
|
||||
_key = format["CHILD:398:%1:%2:",_traderID,_buyorsell];
|
||||
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;
|
||||
_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 {
|
||||
|
||||
Reference in New Issue
Block a user