Proper way of getting ratio of teams?
I have the number of players on ct and t in their own variables.
Basically, I want to check if the ratio of CT to T is 1:2. I tried dividing amount of T's by amount of CT's, but that didn't seem to work. |
Re: Proper way of getting ratio of teams?
You are running that jailbreak server? Isn't the ratio on such a server like 1:3 or even 1:4?
|
Re: Proper way of getting ratio of teams?
On my server I do no more than 1:2
|
Re: Proper way of getting ratio of teams?
Anyone got a clue what I'm doing wrong?
Here's a better example of how I'm attempting to do it: PHP Code:
|
Re: Proper way of getting ratio of teams?
Try using 2.0 instead of 2. And also is it possible that you aren't setting your t and ct variables right?
Code:
|
Re: Proper way of getting ratio of teams?
Based on the code above:
PHP Code:
in the code above i'm calculating the ratio of T players per alive players. What makes that if there are 5 T's and 10 Ct's it will give 0.3(3). But, you just want the ratio of T's per Ct's so the way you doing is correct PHP Code:
|
Re: Proper way of getting ratio of teams?
Thank you
|
Re: Proper way of getting ratio of teams?
When I compile I get one warning on this line
PHP Code:
|
Re: Proper way of getting ratio of teams?
PHP Code:
|
Re: Proper way of getting ratio of teams?
Thank you
|
| All times are GMT -4. The time now is 15:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.