Raised This Month: $ Target: $400
 0% 

[CS:GO] Overtime Plugin request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
azalty
AlliedModders Donor
Join Date: Feb 2020
Location: France
Old 01-13-2021 , 15:23   Re: [CS:GO] Overtime Plugin request
Reply With Quote #1

Does it not already says that?

You can try to add:

Code:
int percentage = RoundToNearest((float(item_info[0][VOTEINFO_ITEM_VOTES]) / float(num_votes)) * 100);
PrintToChatAll("Vote passed! %i%% voted yes.", percentage);
not tested, but should work
__________________
GitHub | Discord: @azalty | Steam

Last edited by azalty; 02-25-2021 at 08:06. Reason: Added float() to remove warning
azalty is offline
Reply



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 05:43.


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