rimblock 0 Posted March 6, 2015 Hi all, So I am trying to get the mission event handler "HandleDisconnect" to call a function ands pass the player details of the person who disconnected. So I have setup a mission event handler _nul = addMissionEventHandler ["HandleDisconnect",{diag_log format ["Player Disconnected: %1.",_this]; _id = _this spawn playerDisconnect}]; The start of the called function reports the parameters that were passed. diag_log format["[%1] Started.", _scriptname]; diag_log format["[%1] Parameters received: .", _scriptname, _this]; The script errors as it receives no parameters. The diag_log lines produced are. 11:27:17 "Player Disconnected: [R Alpha 1-1:1,8.35969e+008,"76561197970856200","RimBlock"]." 11:27:17 "[playerDisconnect.sqf] Started." 11:27:17 "[playerDisconnect.sqf] Parameters received: ." Any ideas (different namespace issues / bug with the mission event handler) ?. Share this post Link to post Share on other sites
fight9 13 Posted March 6, 2015 (edited) diag_log format["[%1] Parameters received: [color="#B22222"][b]%2[/b][/color].", _scriptname, _this]; Edited March 6, 2015 by Fight9 Share this post Link to post Share on other sites
rimblock 0 Posted March 6, 2015 diag_log format["[%1] Parameters received: [color="#B22222"][b]%2[/b][/color].", _scriptname, _this]; Ahh.... thanks. There is actually another error in the log directly after that with putting the value of _this in to s avar then checking to see if it was empty. I presumed that was failing as _this was empty but I was using isnull rather than isnil.... Sorted. Thanks. Share this post Link to post Share on other sites