16.10.2013, 20:02
I'm afraid that this SDK doesn't works with the newest version of the sa-mp server.
That code compiles well[Like it was supposed to!] but the output, from the server, is:
Any ideas of a work around to avoid this issue?
Or am i doing something wrong?
Thanks!
Код:
#include "SDK\amx\amx.h" #include "SDK\plugincommon.h" typedef void (*logprintf_t)(char* format, ...); logprintf_t logprintf; extern void *pAMXFunctions; cell AMX_NATIVE_CALL HelloWorld(AMX* amx, cell* params) { logprintf("This was printed from the Test plugin! Yay!"); return 1; } PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports() { return SUPPORTS_VERSION | SUPPORTS_AMX_NATIVES; } PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData) { logprintf = (logprintf_t) ppData[PLUGIN_DATA_LOGPRINTF]; pAMXFunctions = ppData[PLUGIN_DATA_AMX_EXPORTS]; logprintf(" * Test plugin was loaded."); return 1; } PLUGIN_EXPORT void PLUGIN_CALL Unload() { logprintf(" * Test plugin was unloaded."); } const AMX_NATIVE_INFO PluginNatives[] = { {"HelloWorld", HelloWorld}, {0, 0} }; PLUGIN_EXPORT int PLUGIN_CALL AmxLoad( AMX *amx ) { return amx_Register(amx, PluginNatives, -1); } PLUGIN_EXPORT int PLUGIN_CALL AmxUnload( AMX *amx ) { return AMX_ERR_NONE; }
Код:
Plugin does not conform to architecture.
Or am i doing something wrong?
Thanks!