AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get percentage (https://forums.alliedmods.net/showthread.php?t=112936)

tuty 12-22-2009 08:00

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

i need a stock..

Arkshine 12-22-2009 08:10

Re: get percentage
 
something like ? :

Code:
stock Float:GetPercentage ( const currentKills, const maxKills ) {     return ( currentKills * 100.0 ) / maxKills; }

tuty 12-22-2009 08:42

Re: get percentage
 
yeah, works.. thanks

Exolent[jNr] 12-22-2009 10:43

Re: get percentage
 
You made a topic for simple math? -_-

cikjam 12-22-2009 10:46

Re: get percentage
 
lol

Arkshine 12-22-2009 11:04

Re: get percentage
 
Quote:

Originally Posted by Exolent[jNr] (Post 1026898)
You made a topic for simple math? -_-

Why not. People might not have your math knowledge.


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

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