01.12.2014, 13:42
I used this
As soon as i connect to the server (even though OnPlayerConnect isn't defined)
Only happened since updating to 4.2 i was wrong earlier this happens when linking to the dynamic libs too, i hadnt updated them to 4.2 at that point just the static libs.
PS, I use visual studio so the 'SAMPGDK_AMALGAMATION' definition is in my preprocessor definitions in project properties.
pawn Код:
#include <sampgdk/sampgdk.h>
PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData) { return sampgdk::Load(ppData); }
PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports() { return sampgdk::Supports() | SUPPORTS_PROCESS_TICK; }
PLUGIN_EXPORT void PLUGIN_CALL Unload() { sampgdk::Unload(); }
PLUGIN_EXPORT void PLUGIN_CALL ProcessTick() { sampgdk::ProcessTick();
Код:
[14:24:56] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
PS, I use visual studio so the 'SAMPGDK_AMALGAMATION' definition is in my preprocessor definitions in project properties.