Configs
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? This is my config for a cronjob I want to run for map changes/warnings sent out before the restart: Code:
// Say reboot notice to server 10 mins prior Also, does it matter if I use "quit" instead of "_restart"? |
Re: Configs
Quote:
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. |
Re: Configs
Thanks for the response Anti. The plugin is server crontab.
|
Re: Configs
Quote:
|
Re: Configs
Thanks a lot anti, I really appreciate it. I assume in the future, there will be some definition for how long a string/floating point variable is valid? Or is that up to sourcemod?
Now to figure out how to schedule actions within one minute >__< |
Re: Configs
Quote:
|
Re: Configs
As in, how many digits? 1.33 or 1.3333333? How many digits would be legitimate?
|
Re: Configs
For strings, it's completely up to the plugin.
For floating point, it's likely an implementation of IEEE754... which are actually storing two parts of an equation: X * 2^Y Needless to say, floating point are not high accuracy. |
All times are GMT -4. The time now is 05:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.