mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 22:22:57 +03:00
1.7.5.D1208
This commit is contained in:
26
dayz_server/compile/server_tradeObject.sqf
Normal file
26
dayz_server/compile/server_tradeObject.sqf
Normal file
@@ -0,0 +1,26 @@
|
||||
private["_character","_traderid","_buyorsell","_data","_result","_oid","_key","_outcome"];
|
||||
|
||||
_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";
|
||||
|
||||
//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));
|
||||
|
||||
_outcome = _result select 0;
|
||||
|
||||
dayzTradeResult = _outcome;
|
||||
_clientID publicVariableClient "dayzTradeResult";
|
||||
Reference in New Issue
Block a user