How to Get Cvar String and Set Cvar String(and Num Float)
Who wants to help me, teach me how to get Cvar String (num, float), And set Cvar String (num, float).
Thank you very much! |
Re: How to Get Cvar String and Set Cvar String(and Num Float)
PHP Code:
|
Re: How to Get Cvar String and Set Cvar String(and Num Float)
I would like to ask how to obtain "somehandle"?
For example, I want to obtain and modify the "hostname", specifically, how to do it? I would like to access or modify some Cvar in "core.cfg". For example: the value of the PassInfoVar, how can I do? Please teach me in detail, the best is the complete code, thank you! |
Re: How to Get Cvar String and Set Cvar String(and Num Float)
|
Re: How to Get Cvar String and Set Cvar String(and Num Float)
Thank's very much for 11530 and RedSword help me.
I think I can: new Handle: H_PassInfoVar = FindConVar ("PassInfoVar"); new PassInfoVar [64]; GetConVarString (H_PassInfoVar, PassInfoVar, sizeof (PassInfoVar)); SetConVarString (H_PassInfoVar, "_siteuserpassword"); |
Re: How to Get Cvar String and Set Cvar String(and Num Float)
Quote:
Code:
new String:PassInfoVar [64]; |
Re: How to Get Cvar String and Set Cvar String(and Num Float)
I didn't think PassInfoVar was a convar.
|
Re: How to Get Cvar String and Set Cvar String(and Num Float)
Yes ! PassInfoVar is Invalid convar!
But , How can I get "PassInfoVal" value ? |
Re: How to Get Cvar String and Set Cvar String(and Num Float)
Quote:
I guess you need this
|
Re: How to Get Cvar String and Set Cvar String(and Num Float)
Thank you very much!I tested this function is working properly!
But I look at this is to use regular expressions to get content from the text. Is not the only way we can? SourceMod not the content loaded core.cfg for variables? |
| All times are GMT -4. The time now is 23:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.