Raised This Month: $32 Target: $400
 8% 

ACC


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-09-2019 , 21:04   Re: ACC
Reply With Quote #11

Quote:
Originally Posted by SomewhereLost View Post
%.02f < for 2 decimal points.
No, "%.2f" is correct for 2 digits of precision. Yours probably works too but this is the version is probably the most common way used.
__________________

Last edited by fysiks; 01-09-2019 at 21:46.
fysiks is offline
Igor69
Junior Member
Join Date: Feb 2014
Old 01-10-2019 , 04:06   Re: ACC
Reply With Quote #12

So how to get ACC stats when round ends? Any code line? I try all variations, but doesn't work.. Always shows ACC: 0%

Last edited by Igor69; 01-10-2019 at 04:08.
Igor69 is offline
Kushfield
Member
Join Date: Jan 2017
Location: Estonia
Old 01-14-2019 , 10:28   Re: ACC
Reply With Quote #13

It always shows 0 because you always pass it 0 (stats array). You would need to keep count of the amount of shots and hits each players makes in addition to kills and headshots. Then divide hit count by shot count to get the accuracy. In the current state, you're not getting hit and shot count from anywhere, you're just dividing 0 by 0, which is 0.
Kushfield is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode