24.12.2014, 17:32
Код:
#include ".\SDK\plugincommon.h" #include ".\SDK\amx\amx.h" #include ".\sampgdk\sampgdk.h" PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData) { return sampgdk::Load(ppData); } PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports() { sampgdk::logprintf(" Hello there!"); return sampgdk::Supports() | SUPPORTS_PROCESS_TICK; } PLUGIN_EXPORT void PLUGIN_CALL Unload() { sampgdk::Unload(); } PLUGIN_EXPORT void PLUGIN_CALL ProcessTick() { sampgdk::ProcessTick(); } PLUGIN_EXPORT bool PLUGIN_CALL OnGameModeInit() { SendRconCommand("echo initialized."); return true; }
Код:
EXPORTS Supports Load Unload OnGameModeInit ProcessTick
[24-12-2014, 18:13:58] [sampgdk:warning] Native function not found: SendRconCommand
[24-12-2014, 18:13:58] [sampgdk:warning] Native stub
it prints out "hello there" into console window. No such record in logfile.