I wrote this and i am geting a wierd error and its late so i will post it here if anyone wants to Debug it
This is the error
This is the error
Rich (BB code):
MQ2Bind\MQ2Bind.cpp(9) : error C2065: 'GetZoneId' : undeclared identifierCODE]
This is the code...Duh
Rich (BB code):
#include "../MQ2Plugin.h"
PreSetup("MQ2Bind")
VOID SetBind (PSPAWNINFO, PCHAR);
VOID SetBind (PSPAWNINFO pChar, PCHAR szLine)
{
CHAR szMsg[MAX_STRING] = {0};
DWORD SetBind;
SetBind = GetZoneId(szLine);
GetCharInfo()->ZoneBoundId = SetBind;
printf("You have been bound to %s id %d",szLine,SetBind);
}
PLUGIN_API VOID IntializePlugin(VOID)
{
DebugSpewAlways("Enabling your abbility to set your bind point");
AddCommand("/Setbind",SetBind);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("Shuting Down MQ2Bind");
RemoveCommand("/Setbind");
}
Last edited: