Well, I'm not sure if it's the right way of doing it.

But I managed to get cvars working by:

1. Add the convar.cpp valve provided to your project.
2. Declare g_pCVar somewhere and then set it to the icvar interface.
3. Call ConVar_Register on load, and ConVar_Unregister on unload.

It seems to work flawlessly for me.

- voogru.

-----Original Message-----
From: Ray [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 7:54 PM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] TF2 Plugin Headstart? VEngineCvar004?

At 02:58 PM 10/4/2007, you wrote:
>Everything loads+works just fine now.  Thanks for your help, Mike!
>
>   ---David Anderson
>   http://www.bailopan.net/

Are you or anyone having issues with using cvars?
I had the default InitCvars function...and cant call it because of
ConCommandBaseMgr::OneTimeInit not existing anywhere that I can find.
I cant use any cvars in plugin or in console ..
Is anyone else able to get this to work?
Ray




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to