mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-19 01:52:00 +03:00
more private array updates
This commit is contained in:
@@ -1,25 +1,18 @@
|
||||
private["_character","_traderid","_buyorsell","_data","_result","_oid","_key","_outcome"];
|
||||
private ["_character","_traderid","_buyorsell","_data","_result","_key","_outcome","_clientID"];
|
||||
|
||||
_character = _this select 0;
|
||||
_traderid = _this select 1;
|
||||
_buyorsell = _this select 2;
|
||||
|
||||
diag_log format["DEBUG PVEH: %1", _character];
|
||||
|
||||
_clientID = owner _character;
|
||||
diag_log ("TRADE: Trade Request by ClientID: "+ str(_clientID));
|
||||
|
||||
_oid = "ERROR";
|
||||
diag_log format["TRADE: Trade Request by ClientID: %1 Character: %2 TraderID: %3 BuyOrSell: %4", _clientID, _character,_traderid,_buyorsell];
|
||||
|
||||
//Send request
|
||||
_key = format["CHILD:398:%1:%2:",_traderid,_buyorsell];
|
||||
diag_log ("TRADE: WRITE: "+ str(_key));
|
||||
|
||||
_data = "HiveEXT" callExtension _key;
|
||||
_result = call compile format ["%1",_data];
|
||||
|
||||
diag_log ("TRADE: RES: "+ str(_result));
|
||||
|
||||
// diag_log ("TRADE: RES: "+ str(_result));
|
||||
_outcome = _result select 0;
|
||||
|
||||
dayzTradeResult = _outcome;
|
||||
|
||||
Reference in New Issue
Block a user