Jump to content

Debug Issues


MrGrimm

Recommended Posts

Im currently having an issue with my debug monitor fading away after 10 seconds....how can i make it stay ? Below is the code im using.

 

 

//display gui (temp hint)
 
hintSilent parseText format ["
  <t size='1.20' font='Bitstream' color='#FFCC00'>%1</t>
<br/>
<img size='5' image='debug\stats_logo.paa'/><br/>
<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>DomeShots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/>
<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/>
<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Survived %7 Days</t><br/><br/>
<t size='1.10' font='Bitstream' align='left' color='#FF0000'>Blood: </t><t size='1.15' font='Bitstream' align='right' color='#FF0000'>%8</t><br/><br/>
 
<t size='1' font='Bitstream' align='center' color='#FFCC00'>Restart in %9 minutes</t><br/><br/>
<t size='1.10' font='Bitstream' align='center' color='#FFCC00'>Website</t>
<t size='1.10' font='Bitstream' >www.ZombieBattalion.net</t>
<br/>
<t size='1.10' font='Bitstream' align='center' color='#FFCC00'>TeamSpeak</t>
<br/>
<t size='1' font='Bitstream' align='center'>ts3.zombiebattalion.net:9285</t><br/>
",
(name player),
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_Survived),
(r_player_blood),
(180-(round(serverTime/60)))
];
Link to comment
Share on other sites

 

Im currently having an issue with my debug monitor fading away after 10 seconds....how can i make it stay ? Below is the code im using.

 

 

//display gui (temp hint)
 
hintSilent parseText format ["
...

 

 

pls use codebrackets, it makes it a lot easyer to read

 

now idk how you call this, but if you put it in a while loop it will constantly run, like this:

if (isNil "debug_monitor") then {debug_monitor = true} else {debug_monitor = !debug_monitor};
while {debug_monitor} do {
	hintSilent parseText format ["
		<t size='1.20' font='Bitstream' color='#FFCC00'>%1</t>
		<br/>
		<img size='5' image='debug\stats_logo.paa'/><br/>
		<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
		<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>DomeShots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
		<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
		<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/>
		<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/>
		<t size='1.10' font='Bitstream' align='left' color='#DDDDDD'>Survived %7 Days</t><br/><br/>
		<t size='1.10' font='Bitstream' align='left' color='#FF0000'>Blood: </t><t size='1.15' font='Bitstream' align='right' color='#FF0000'>%8</t><br/><br/>

		<t size='1' font='Bitstream' align='center' color='#FFCC00'>Restart in %9 minutes</t><br/><br/>
		<t size='1.10' font='Bitstream' align='center' color='#FFCC00'>Website</t>
		<t size='1.10' font='Bitstream' >www.ZombieBattalion.net</t>
		<br/>
		<t size='1.10' font='Bitstream' align='center' color='#FFCC00'>TeamSpeak</t>
		<br/>
		<t size='1' font='Bitstream' align='center'>ts3.zombiebattalion.net:9285</t><br/>
		",
		(name player),
		(player getVariable['zombieKills', 0]),
		(player getVariable['headShots', 0]),
		(player getVariable['humanKills', 0]),
		(player getVariable['banditKills', 0]),
		(player getVariable['humanity', 0]),
		(dayz_Survived),
		(r_player_blood),
		(180-(round(serverTime/60)))
	];
};

 im assuming you are just replacing the default debug, in that case this should also make it toggleable,

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...