Hi guys.
Im trying to add a UPTIME to my debug monitor instead of a countdown as im trying to do stuff that would require a Uptime instead of a countdown becuase the countdown wont be as accurate.
Heres what i have so far
I get the UPTIME there but it stays at 1min and wont go up.
Any help would be appreciated
Im trying to add a UPTIME to my debug monitor instead of a countdown as im trying to do stuff that would require a Uptime instead of a countdown becuase the countdown wont be as accurate.
Heres what i have so far
fnc_debug = {
debugMonitor = true;
while {debugMonitor} do
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
if (player == vehicle player) then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
}
else
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
};
_stime = 0;
if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
_hours = (_stime/60/60);
_hours = toArray (str _hours);
_hours resize 1;
_hours = toString _hours;
_hours = compile _hours;
_hours = call _hours;
_minutes = floor(_stime/60);
_minutes2 = _minutes - (_hours*60);
_pos = getPosATL player;
hintSilent parseText format ["
<t size='1.25' font='Bitstream'align='center' color='#0000FF'>UndeadGaming</t><br/>
<t size='1'font='Bitstream'align='left' color='#C80000'>Blood:</t><t size='1' font='Bitstream'align='right' color='#B30000'>%9</t><br/>
<t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
<t size='1'font='Bitstream'align='left' color='#FFFFFF'>FPS:</t><t size='1'font='Bitstream'align='right' color='#FFFFFF'>%10</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'>%2</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>UPTIME: </t><t size='1' font='Bitstream' align='right'>%5h %3min</t><br/>
<t size='0.8'font='Bitstream'align='center'>Right Ctrl key to toggle</t><br />",
(name player), //1
(player getVariable['zombieKills', 0]), //2
(player getVariable['headShots', 0]), //3
(player getVariable['humanKills', 0]), //4
(player getVariable['banditKills', 0]), //5
(player getVariable['humanity', 0]), //6
(dayz_Survived), //7
(count playableUnits), //8
r_player_blood,
_hours,
_minutes2,
(round diag_fps), //10
({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 250000])), //11
viewdistance, //12
((count([6800, 9200, 0] nearEntities [["Car","Motorcycle","Air","Ship"],25000]))+200), //13
((count vehicles) + 200), //14
(gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')), //15
(count entities "zZombie_Base"), //16
({alive _x} count entities "zZombie_Base"), //17
(getPosASL player), //18
(mapGridPosition getPos player), //19
(count([6800, 9200, 0] nearEntities [["Ship"],25000])), //20
(round(getDir player)), //21
//22
_pic, //23
({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 1000]))
];
sleep 1;
};
debugMonitor = true;
while {debugMonitor} do
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
if (player == vehicle player) then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
}
else
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
};
_stime = 0;
if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
_hours = (_stime/60/60);
_hours = toArray (str _hours);
_hours resize 1;
_hours = toString _hours;
_hours = compile _hours;
_hours = call _hours;
_minutes = floor(_stime/60);
_minutes2 = _minutes - (_hours*60);
_pos = getPosATL player;
hintSilent parseText format ["
<t size='1.25' font='Bitstream'align='center' color='#0000FF'>UndeadGaming</t><br/>
<t size='1'font='Bitstream'align='left' color='#C80000'>Blood:</t><t size='1' font='Bitstream'align='right' color='#B30000'>%9</t><br/>
<t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
<t size='1'font='Bitstream'align='left' color='#FFFFFF'>FPS:</t><t size='1'font='Bitstream'align='right' color='#FFFFFF'>%10</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'>%2</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>UPTIME: </t><t size='1' font='Bitstream' align='right'>%5h %3min</t><br/>
<t size='0.8'font='Bitstream'align='center'>Right Ctrl key to toggle</t><br />",
(name player), //1
(player getVariable['zombieKills', 0]), //2
(player getVariable['headShots', 0]), //3
(player getVariable['humanKills', 0]), //4
(player getVariable['banditKills', 0]), //5
(player getVariable['humanity', 0]), //6
(dayz_Survived), //7
(count playableUnits), //8
r_player_blood,
_hours,
_minutes2,
(round diag_fps), //10
({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 250000])), //11
viewdistance, //12
((count([6800, 9200, 0] nearEntities [["Car","Motorcycle","Air","Ship"],25000]))+200), //13
((count vehicles) + 200), //14
(gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')), //15
(count entities "zZombie_Base"), //16
({alive _x} count entities "zZombie_Base"), //17
(getPosASL player), //18
(mapGridPosition getPos player), //19
(count([6800, 9200, 0] nearEntities [["Ship"],25000])), //20
(round(getDir player)), //21
//22
_pic, //23
({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 1000]))
];
sleep 1;
};
I get the UPTIME there but it stays at 1min and wont go up.
Any help would be appreciated