Hello,
I'm having some trouble with my debug monitor causing some weird errors:
16:14:08 Error in expression <unt playableUnits),r_player_blood,round _humanity,_killsH,_killsB,_kills,(round >
16:14:08 Error position: <_humanity,_killsH,_killsB,_kills,(round >16:14:08 Error Undefined variable in expression: _humanity16:14:08 File mpmissions\DayZ_Epoch_11.Chernarus\custom\debug.sqf, line 2416:14:12 Wrong text element 'null'16:14:12 Wrong text element 'null'16:14:12 Wrong text element 'null'
The debug monitor works in all its glory with a toggle function.
Here is some info:
This is in my init.sqf to make it so it is enabled by default.
if {!isDedicated} then { debugMonitor = true; [] execvm "custom\debug.sqf"; };
Here is the debug.sqf
while {debugmonitor} do { _kills = player getVariable["zombieKills",0]; _killsH = player getVariable["humanKills",0]; _killsB = player getVariable["banditKills",0]; _humanity = player getVariable["humanity",0]; hintSilent parseText format [" <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Website:</t><br/> <t size='1.15' font='Bitstream'align='center'>Numenadayz.com</t><br/> <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Teamspeak:</t><br/> <t size='1.15' font='Bitstream'align='center'>ts.numenadayz.com</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Players Online: </t><t size='0.95 'font='Bitstream' align='right'>%1</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/> <t size='1.15' font='Bitstream' align='center' color='#5882FA'>Restart in %8 Minutes</t><br/> <t size='1' font='Bitstream' align='center'>Press F10 to toggle</t>", (count playableUnits),r_player_blood,round _humanity,_killsH,_killsB,_kills,(round diag_fps),(round(180-(serverTime) / 60)) ]; sleep 1; };
and this part calls the debug monitor when you press F10
if (_dikCode == 0x44) then { if (isNil 'debugMonitor') then { debugMonitor = true; [] execvm "custom\debug.sqf"; } else { debugMonitor = !debugMonitor; hintSilent ''; [] execvm "custom\debug.sqf"; }; };
is the isNil value causing the problem? and if so what can I replace it with?
I used this debug monitor before without any problems, but when I added a toggle function this happend.