Re[2]: [hlcoders] unloading plugins, playerinfomanager and cvars

2005-02-27 Thread disq
Hello, Friday, February 25, 2005, 2:41:42 PM, you wrote: MvdZ You pass an integer to the constructor of the second, it should be a MvdZ string, like the first one. Thanks, fixed it. Tho i'm still disappointed with the plugin API, especially concommands not getting unregistered when plugins are

Re: [hlcoders] unloading plugins, playerinfomanager and cvars

2005-02-25 Thread Maarten van der Zwaart
On Thu, Feb 24, 2005 at 08:34:58PM +0200, disq wrote: 3. The code seems to crash if i register more than one CVAR, but i'm still investigating that. Code is like this: static ConVar myp_cvar1(myp_cvar1, , FCVAR_PLUGIN | FCVAR_PROTECTED, first cvar); static ConVar myp_cvar2(myp_cvar2, 1,

[hlcoders] unloading plugins, playerinfomanager and cvars

2005-02-24 Thread disq
Hi, I'm having some problems on my serverplugin and i need some help. here are the issues: 1. When i unload my plugin via plugin_unload, it's CON_COMMANDS and cvar are still in place. Is there something I should do in MyPlugin::Unload() to unregister the concommands/cvars? (also the