Raised This Month: $ Target: $400
 0% 

[Solved] 1 == Infinite CVar Set?


Post New Thread Reply   
 
Thread Tools Display Modes
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 05-02-2012 , 02:10   Re: [Solved] 1 == Infinite CVar Set?
Reply With Quote #11

Quote:
Originally Posted by Powerlord View Post
Which mistake did you want us to point out first? The fact that you're trying to compare two Floats using == or the fact that you're trying to set your own convar to 100000000.0 after you limited to a max of 60 in the CreateConVar line?
And it was a simple mistake I didn't account for. I was just simply attempting to make it last for more than a spilt second with the CVar set to -1. (Done)

I know there were man errors with the code. Will attempt to clarify better next time
ReFlexPoison is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-02-2012 , 05:54   Re: [Solved] 1 == Infinite CVar Set?
Reply With Quote #12

Quote:
Originally Posted by Powerlord View Post
The fact that you're trying to compare two Floats using ==
The Float: tag has the == operator overloaded to call the FloatCompare native, which has a compiler intrinsic to emit native code.

Quote:
Originally Posted by Powerlord View Post
the fact that you're trying to set your own convar to 100000000.0 after you limited to a max of 60 in the CreateConVar line?
Also fine, only the server console cares about the min and max values.
__________________
asherkin is online now
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-02-2012 , 11:33   Re: [Solved] 1 == Infinite CVar Set?
Reply With Quote #13

For some odd reason, I thought integers had to be 0+... oops
__________________
View my Plugins | Donate
TnTSCS is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 05-02-2012 , 11:51   Re: [Solved] 1 == Infinite CVar Set?
Reply With Quote #14

Quote:
Originally Posted by TnTSCS View Post
For some odd reason, I thought integers had to be 0+... oops
Maybe you were thinking about unsigned ones
__________________
napalm00 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 11:14.


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