Custom debug monitor Wrong text element 'null'

oshydaka

New Member
Hi guys.

I've the "Wrong text element 'null' " spam in my rpt.

I know it come from the debug monitor, but I can't figure out why and where is the error in my script.

Here is my script :

Code:
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _headShots =    player getVariable["headShots",0];
        _kills =        player getVariable["zombieKills",0];
        _killsH =        player getVariable["humanKills",0];
        _killsB =        player getVariable["banditKills",0];
        _humanity =    player getVariable["humanity",0];
        hintSilent parseText format ["
        <br/>
        <t size='1.2'font='Bitstream'align='center' color='#104E8B' >%1</t><br/><br/>
        <t size='1'font='Bitstream' align='center' color='#104E8B' >Survie depuis %2 jours</t><br/>
        <t size='1'font='Bitstream' align='left' color='#EE0000' >Santé:</t><t size='1' font='Bitstream'align='right' color='#FFFFFF' >%3</t><br/>
        <t size='1'font='Bitstream' align='left' color='#ffcc00' >Humanité:</t><t size='1'font='Bitstream'align='right' color='#FFFFFF' >%4</t><br/>
        <t size='1'font='Bitstream' align='left' color='#ffcc00' >FPS:</t><t size='1' font='Bitstream' align='right' color='#FFFFFF' >%5</t><br/><br/>
        <t size='1'font='Bitstream' align='left' color='#ffcc00' >Tir tête:</t><t size='1' font='Bitstream' align='right' color='#FFFFFF' >%6</t><br/>
        <t size='1'font='Bitstream' align='left' color='#ffcc00' >Zombies tués:</t><t size='1' font='Bitstream' align='right' color='#FFFFFF' >%7</t><br/>
        <t size='1'font='Bitstream' align='left' color='#ff0000' >Meurtres:</t><t size='1' font='Bitstream' align='right' color='#FFFFFF' >%8</t><br/>
        <t size='1'font='Bitstream' align='left' color='#16ba00' >Bandits tués:</t><t size='1' font='Bitstream' align='right' color='#FFFFFF' >%9</t><br/>
        <t size='1'font='Bitstream' align='left' color='#104E8B' >Redémarrage:</t><t size='1' font='Bitstream' align='right'>%10 Minutes</t>               
        ",dayz_playerName,(dayz_Survived),r_player_blood,round _humanity,round diag_fps,_headShots,_kills,_killsH,_killsB,(round(360-(serverTime)/60))];
    sleep 1;
    };
};
 
[] spawn fnc_debug;

Thanks a lot
 
in your init file, when your calling on the custom monitor....
you probably have something like this
[] ExecVM "custom\custom_monitor.sqf"; // custom debug

all you have to do is change to......
if (!isDedicated) then {
[] ExecVM "custom\custom_monitor.sqf"; // custom debug
};

this should solve your problem...
 
I have the same issue but have narrowed it down to AI headshots. AI headshots are not counting and I am also getting the wrong text element null message. I am using DZai. Thoughts? Here is my code:

if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};

while {custom_monitor} do
{
_kills = player getVariable["zombieKills",0];
_killsH = player getVariable["humanKills",0];
_killsB = player getVariable["banditKills",0];
_humanity = player getVariable["humanity",0];
_headShots = player getVariable["headShots",0];

hintSilent parseText format [
"<t size='2'font='Bitstream'align='center'>%1</t><br/><br/>
<t size='1'font='Bitstream'align='left' color='#ff0000'>Blood:</t><t size='1' font='Bitstream'align='right'>%2</t><br/>
<t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
<t size='1'font='Bitstream'align='left'>Murders:</t><t size='1'font='Bitstream'align='right'>%4</t><br/>
<t size='1'font='Bitstream'align='left'>Bandits Killed:</t><t size='1'font='Bitstream'align='right'>%5</t><br/>
<t size='1'font='Bitstream'align='left'>Zombies Killed:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
<t size='1'font='Bitstream'align='left'>Headshots:</t><t size='1'font='Bitstream'align='right'>%7</t><br/>
<t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%8 Days</t><br/>
<t size='1'font='Bitstream'align='left'>FPS:</t><t size='1'font='Bitstream'align='right'>%9</t><br/>
<t size='1'font='Bitstream'align='center' color='#ff0000'>TechOpsGaming.com</t><br/><br/>",
dayz_playerName,
r_player_blood,
(round(_humanity)),
_killsH,
_killsB,
_kills,
_headShots,
(dayz_Survived),
floor(diag_fps)
];
sleep 1;
};
 
Back
Top