From 6798a6632b7e58e00316c9add39f336f5cba015c Mon Sep 17 00:00:00 2001 From: Torndeco Date: Fri, 8 Nov 2013 19:35:26 +0000 Subject: [PATCH] Fix for diag_log statement when player buying vehicles Just passing the variable _activatingPlayer So the debug statement works --- SQF/dayz_server/compile/server_publishVehicle2.sqf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_server/compile/server_publishVehicle2.sqf b/SQF/dayz_server/compile/server_publishVehicle2.sqf index 96a390f3d..9a6d40d4c 100644 --- a/SQF/dayz_server/compile/server_publishVehicle2.sqf +++ b/SQF/dayz_server/compile/server_publishVehicle2.sqf @@ -36,8 +36,8 @@ diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; // Switched to spawn so we can wait a bit for the ID -[_object,_uid,_characterID,_class,_dir,_location,_donotusekey] spawn { - private ["_object","_uid","_characterID","_done","_retry","_key","_result","_outcome","_oid","_class","_location","_object_para","_donotusekey"]; +[_object,_uid,_characterID,_class,_dir,_location,_donotusekey,_activatingPlayer] spawn { + private ["_object","_uid","_characterID","_done","_retry","_key","_result","_outcome","_oid","_class","_location","_object_para","_donotusekey","_activatingPlayer"]; _object = _this select 0; _uid = _this select 1; @@ -46,6 +46,7 @@ _key call server_hiveWrite; //_dir = _this select 4; _location = _this select 5; _donotusekey = _this select 6; + _activatingPlayer = _this select 7; _done = false; _retry = 0; @@ -117,4 +118,4 @@ _key call server_hiveWrite; publicVariable "PVDZE_veh_Init"; diag_log ("PUBLISH: " + str(_activatingPlayer) + " Bought " + (_class) + " with ID " + str(_uid)); -}; \ No newline at end of file +};