SourceHook compile errors
PHP Code:
|
Re: SourceHook compile errors
Ok, need this
SH_DECL_HOOK2_void(IServerGameClients, ClientActive, SH_NOATTRIB, 0, edict_t *, bool); But still error with PLUGIN_SAVEVARS and GET_V_IFACE_ANY. |
Re: SourceHook compile errors
ISmmPlugin.h
#define GET_V_IFACE_ANY(v_factory, v_var, v_type, v_name) \ v_var = (v_type *)ismm->VInterfaceMatch(ismm->v_factory(), v_name, 0); \ if (!v_var) \ { \ if (error && maxlen) \ { \ ismm->Format(error, maxlen, "Could not find interface: %s", v_name); \ } \ return false; \ } Total commander can't find this stupid maxlen var. |
Re: SourceHook compile errors
Ok, when i do this: int maxlen = 1024; then it's work, good help, thx.
--------- #define PLUGIN_SAVEVARS() \ g_SMAPI = ismm; \ g_SHPtr = static_cast<SourceHook::ISourceHook *>(ismm->MetaFactory(MMIFACE_SOURCEHOOK, NULL, NULL)); \ g_PLAPI = static_cast<ISmmPlugin *>(this); \ g_PLID = id; id = ? omg, then i must just remove g_PLID = id; ? okay. |
Re: SourceHook compile errors
https://github.com/alliedmodders/sou....cpp#L149-L163
2. I don't think you want to be using PLUGIN_SAVEVARS in a MM:S-attached SM extension. 3. This is a problem in the header/function prototype, the maxlength param should be renamed to maxlen, which is what the macro is after. |
All times are GMT -4. The time now is 19:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.