What am I doing wrong on this debug monitor?

DangerRuss

OpenDayZ Rockstar!
Kinda spliced this debug monitor together from a few Ive seen around. Basically, Im trying to get it to differentiate between Murders (survivors) , Hero Murders (Heroes), AI Bandits, and player Bandit kills. When I kill a player bandit, the number drops down one, and then right back up one again. So if I had 7 Bandit Kills, and I kill a player bandit, it drops to 6 for a second then back up to 7 again. I haven't tested the hero kills cause no heroes are on right now and I haven't tested this with ai... Also the debug monitor worked fine until I added #'s 8 and 9 to it, which is where Im trying to get it to differentiate between players and ai. What am I doing wrong?

Code:
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _killsH =        player getVariable["humanKills",0];
        _killsB =        player getVariable["banditKills",0];
        _humanity =      player getVariable["humanity",0];
        _clientfps =round diag_fps;
        _tL = ((14160 - time) / 60);
        _tL = round(_tL);
        _banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < -2500)} count playableUnits;
        _heroCount  = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
        hintSilent parseText format ["
        <t size='2'font='Bitstream'align='center'color='#660000'>W.I.C.K.E.D.</t><br/>
        <t size='1'font='Bitstream'align='left'color='#CC0000'>Blood:</t><t size='1' font='Bitstream'align='right'color='#CC0000'>%1</t><br/>
        <t size='1'font='Bitstream'align='left'color='#0066FF'>Humanity:</t><t size='1'font='Bitstream'align='right'color='#0066FF'>%2</t><br/>
        <t size='1'font='Bitstream'align='left'color='#FF9900'>Murders:</t><t size='1'font='Bitstream'align='right'color='#FF9900'>%3</t><br/>
        <t size='1'font='Bitstream'align='left'color='#666666'>Bandit AI Killed:</t><t size='1'font='Bitstream'align='right'color='#666666'>%4</t><br/>
        <t size='1'font='Bitstream'align='left'color='#00CC33'>Survived:</t><t size='1'font='Bitstream'align='right'color='#00CC33'>%5 Days</t><br/>
        <t size='1'font='Bitstream'align='left'color='#FFFFFF'>FPS:</t><t size='1'font='Bitstream'align='right'color='#FFCC00'>%6</t><br/>
        <t size='1'font='Bitstream'align='left'color='#FFFFFF'>Time until restart:</t><t size='0.75'font='Bitstream'align='right' color='#FFCC00'>%7mins</t><br/>
        <t size='1'font='Bitstream'align='left' color='#666666' >Current Asshole Kills:</t><t size='1'font='Bitstream'align='right' color='#666666' >%8</t><br/>
        <t size='1'font='Bitstream'align='left' color='#FF9900' >Current Hero Murders:</t><t size='1'font='Bitstream'align='right' color='#FF9900' >%9</t><br/>
        <t size='1'font='Bitstream'align='left'color='#FFFFFF'>Vehicles:</t><t size='0.80'font='Bitstream'align='right'color='#FFCC00'>%10</t><br/>
        <t size='1.5'font='Bitstream'align='center'color='#006600'>%11</t><br/>
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Press F10 to toggle! </t><br/>
        
        ",r_player_blood,round _humanity,_killsH,_killsB,dayz_Survived,(_clientfps),(_tL),_banditCount,_heroCount,(count([6800, 9200, 0] nearEntities [["Car","Motorcycle","Tank","Air","Ship"],25000])),dayz_playerName];
    sleep 1;
    };
};
[] spawn fnc_debug;
 
Back
Top