SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 16/10/2010, 12:47 AM   #1
The_Moddler
High-roller
 
The_Moddler's Avatar
 
Join Date: Jan 2010
Location: In my house.
Posts: 1,168
Reputation: 3
Default Ratio help..

That's the question, how is the formula to get the rate of kill from a player?

Is it the kills divided into 100?

Thanks
__________________
The_Moddler is offline  
Old 16/10/2010, 01:00 AM   #2
Babul
High-roller
 
Babul's Avatar
 
Join Date: Sep 2009
Location: in a cement block
Posts: 1,925
Reputation: 251
Default Re: Ratio help..

hm...
Code:
100/(kills+deaths)*kills
i kill 2 players, die 6 times, thats 2:6, 8 deaths at all: 100/(2+6)*2, thats 12.5%*2= 24% killratio...
i kill 10 players, die 1 time, thats 10:1, 11 deaths at all: 100/(10+1)*10, thats 9.11%*10= 91.11%.
i kill 1 players, die 0 times, thats 1:0, 1 death at all: 100/(1+0)*1, thats 100.0%*1= 100.00%
works.
you were VERY close, just about to find out yourself ^^
ah i missed 1 case:
i kill 0 players, die 1 time, thats 0:1, 1 deaths at all: 100/(0+1)*0, thats 00.0%*0= 0% killratio lolo
Babul is offline  
 

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ratio jaksimaksi Help Archive 2 31/08/2010 10:47 AM
How to calculate ratio ? kurta999 Help Archive 4 20/08/2010 09:11 PM
[AJUDA] Ratio em meu /Status Kasura Português/Portuguese 2 23/07/2010 10:53 PM
Problems with ratio... leapfish Help Archive 13 01/04/2010 08:29 PM
Problem with Ratio thiaZ_ Help Archive 5 19/12/2009 12:19 PM


All times are GMT. The time now is 05:26 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.