Raised This Month: $51 Target: $400
 12% 

Dividing the numbers in sourcemod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Touch
Member
Join Date: Apr 2010
Location: Ukraine
Old 08-31-2010 , 06:45   Dividing the numbers in sourcemod
Reply With Quote #1

Hello
I need to calculate the ratio player.
But there are problems with the script.
If I did not kill anybody or himself is not dead, then the script in console an error.
But if, as I had killed himself died a few times, then my ratio = 0.00000.

PHP Code:
new userkills GetClientFrags(client);
new 
userdeaths GetClientDeaths(client);
new 
Float:ratio;
ratio userkills userdeaths
Why is my ratio 0.0000?

Thx!
Touch is offline
Send a message via Skype™ to Touch
 



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 11:54.


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