Thread: Configs
View Single Post
Antithasys
Moderator
Join Date: Apr 2008
Old 11-06-2011 , 16:57   Re: Configs
Reply With Quote #2

Quote:
Originally Posted by Larsen View Post
This isn't actually a script question, but I figure the people who frequent this forum would know the answer best.

I know need to know what kind of numbers (integers, decimal, real numbers, etc.) the configs/convars will read?
Depends on the plugin that is reading the cvar. For instance, a plugin can use the following functions to read a cvar:

GetConVarBool()
GetConVarInt()
GetConVarFloat()
GetConVarString()

So, if the plugin is expecting a integer and you set a float, you would not get the result you expected. Likewise, if you set a string and it expects a float. If you don't know what it is expecting... check the source code or run some tests.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline