Setting CVAR value
Code:
|
Re: Setting CVAR value
I can't decipher what you're trying to accomplish. It doesn't seem to make any sense.
|
Re: Setting CVAR value
I figured D: I'll just re-explane it, it reads a command from a file. I want to know if that command is a cvar string or a value, example:
"sv_cheats 1" Wouldn't this be a cvar value? "hostname Server #1" Wouldn't this be a cvar string? Now if the file reads "hostname Server #1" how do i get that to set? I realize server_cmd works, but the wiki says that's a bad way of setting it. |
Re: Setting CVAR value
Use strbreak to separate the cvar name from its value. Then, most likely, you can simply use set_cvar_string whether the value is int, float, or string, since the cvar will still be retrieved by the game under the correct type.
|
| All times are GMT -4. The time now is 22:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.