Raised This Month: $ Target: $400
 0% 

get percentage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-22-2009 , 08:00   get percentage
Reply With Quote #1

how to get percent from bKills[ index ] and MAX_KILLS ?

i need a stock..
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-22-2009 , 08:10   Re: get percentage
Reply With Quote #2

something like ? :

Code:
stock Float:GetPercentage ( const currentKills, const maxKills ) {     return ( currentKills * 100.0 ) / maxKills; }
__________________
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-22-2009 , 08:42   Re: get percentage
Reply With Quote #3

yeah, works.. thanks
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-22-2009 , 10:43   Re: get percentage
Reply With Quote #4

You made a topic for simple math? -_-
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 12-22-2009 , 10:46   Re: get percentage
Reply With Quote #5

lol
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-22-2009 , 11:04   Re: get percentage
Reply With Quote #6

Quote:
Originally Posted by Exolent[jNr] View Post
You made a topic for simple math? -_-
Why not. People might not have your math knowledge.
__________________
Arkshine 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 04:13.


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