Fixed this before
Fixed this before
Last edited by jokerjokes; 03-25-2008 at 09:25 AM.
here you are:
#include "StdAfx.h"
#include "Setup.h"
#include <ScriptSetup.h>
extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
{
return SCRIPT_TYPE_MISC;
}
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr) // Comment any script to disable it
{
SetupOnPVPKill(mgr);
}
#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
#endif
What he said should work
Woot thanks lol hope it works now +rep anyway hehe if i can lol.
Edit: dam need to spread some around sry
Shit now im getting an error with the scriptCode:..srconPVPKillSetup.cpp(3) : fatal error C1083: Cannot open include file: 'ScriptSetup.h': No such file or directory
LOL THANK YOU SOO MUCH gastric..... lol i figured that out when he posted it, i didnt know. lol
lol looks like your trying to compile with an older ascent
Lol, but its not
edit:Anyone know what to do?
If it means anything im using 3.8 branch.....
Last edited by jokerjokes; 03-23-2008 at 05:31 PM.
try
Code:#include "StdAfx.h" #include "Setup.h" extern "C" SCRIPT_DECL uint32 _exp_get_version() { return MAKE_SCRIPT_VERSION(SCRIPTLIB_VERSION_MAJOR, SCRIPTLIB_VERSION_MINOR); } extern "C" SCRIPT_DECL uint32 _exp_get_script_type() { return SCRIPT_TYPE_MISC; } extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr) { SetupOnPvpKill(mgr); } #ifdef WIN32 BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } #endif