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

Stupid mistake or sourcemod is trolling me?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
_Steven_
Member
Join Date: Mar 2012
Old 01-15-2014 , 20:43   Stupid mistake or sourcemod is trolling me?
Reply With Quote #1

PHP Code:
PrintToServer("Zoom: %d (100 - (%d / (%d-%d) * 100)", (100 - (g_iClientFov[client] / (MAX_ZOOM-MIN_ZOOM) *100)), g_iClientFov[client], MAX_ZOOM,MIN_ZOOM); 
And the return
Code:
Zoom: 0 (100 - (90 / (110-30) * 100)
Zoom: 0 (100 - (88 / (110-30) * 100)
Zoom: 0 (100 - (86 / (110-30) * 100)
Zoom: 0 (100 - (84 / (110-30) * 100)
Zoom: 0 (100 - (82 / (110-30) * 100)
Zoom: 0 (100 - (80 / (110-30) * 100)
Zoom: 100 (100 - (78 / (110-30) * 100)
Zoom: 100 (100 - (76 / (110-30) * 100)
Zoom: 100 (100 - (74 / (110-30) * 100)
Zoom: 100 (100 - (72 / (110-30) * 100)
Ok stupid mistake, fixed it by using Float, and RoundToFloor instead to round it

Last edited by _Steven_; 01-15-2014 at 20:47.
_Steven_ is offline
Reply



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 15:50.


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