ok i tried ur script it didnt gave me any error but i dont know i was unable to use the toggle option maybe i missed something
so in my Mpmission\dayz_1.chernarus\
theres no fn_selfActions.sqf
but there was one fn_selfactions.sqf in Mpmission\dayz_1.origins.tavi\Debug
so i took that file made a directory in
Mpmission\dayz_1.chernarus\debug
placed the file there
edited as u said
the code
Code:if((speed player <= 1) && _canDo) then { if (s_player_toggle < 0) then { s_player_toggle = player addaction[("<t color=""#DAA520"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""]; }; } else { player removeAction s_player_toggle; s_player_toggle = -1; };
below
Code:_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
added this to my init.sqf
Code:call compile preprocessFileLineNumbers "debug\fn_selfActions.sqf"; //Compile self action functions progressLoadingScreen 0.8;
just below
Code:call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions progressLoadingScreen 0.6;
didnt had any errors but i was unable to toggle the debug menu
You are pulling directions out of your ass. fn_selfActions comes from dayz_code.pbo