02.07.2015, 20:36
For some reason SetTimer does not want to work. I'm using the latest amalgamation and the following code:
OnGameModeInit and ProcessTick are called, but the function defined in SetTimer won't.
Is there something that i miss or did wrong or it's just don't work for some reason.
Код:
PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports() { return sampgdk::Supports() | SUPPORTS_PROCESS_TICK; } void SAMPGDK_CALL PrintTickCountTimer2(int timerid, void *params) { sampgdk::logprintf("Tick count: %d", GetTickCount()); } PLUGIN_EXPORT bool PLUGIN_CALL OnGameModeInit() { sampgdk::logprintf("GameModeInit"); SetTimer(1000, true, PrintTickCountTimer2, 0); return true; } PLUGIN_EXPORT void PLUGIN_CALL ProcessTick() { sampgdk::ProcessTick(); }
Is there something that i miss or did wrong or it's just don't work for some reason.