Hello. I am trying to make plugin for Dota 2 using Metamod:Source and hl2sdk-dota from this page(
http://hg.alliedmods.net/hl2sdks/) and i've got some problem at the beginning. I made base class of plugin and base implementation of that class.
Code:
#include "ISmmPlugin.h"
class Hook001 : public ISmmPlugin
{
public:
bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlength, bool late);
bool Unload(char *error, size_t maxlen);
bool Pause(char *error, size_t maxlen);
bool Unpause(char *error, size_t maxlen);
const char *GetAuthor();
const char *GetName();
const char *GetDescription();
const char *GetURL();
const char *GetLicense();
const char *GetVersion();
const char *GetDate();
const char *GetLogTag();
};
extern Hook001 *s_Hook001;
PLUGIN_GLOBALVARS();
I also added paths:
$(MMSOURCE10)\core; - path to source code of Metamod:Source 1.10
$(MMSOURCE10)\core\sourcehook;
$(DOTA2)\public; - path to hl2sdk-dota
$(DOTA2)\public\engine;
$(DOTA2)\public\game\server;
$(DOTA2)\public\tier0;
$(DOTA2)\public\tier1;
$(DOTA2)\public\vstdlib;
But when i am trying to compile that simple plugin i am getting many errors.
http://pastebin.com/2dKcNxTk
How can i compile plugin?
P.s.
I also added
$(DOTA2)\lib\public\tier0.lib
$(DOTA2)\lib\public\vstdlib.lib
into linker.
Thank you in advance.
Sorry for my poor english.