25.07.2014, 20:35
I provide them but it keeps crashing, after some debugging i figure out that it crashes when i call the function (not the one from the gdk)
The hi message doesnt even appear.
pawn Код:
cell Hooks::MySQLHooks::mysql_connect(char *host, char *user, char* db, char *pass, int port)
{
sampgdk::logprintf("hi");
AMX_NATIVE native = sampgdk_FindNative("mysql_connect");
if (native != NULL)
{
sampgdk::logprintf("it exists");
}
else sampgdk::logprintf(" it doesnt");
return (cell)sampgdk_InvokeNative(sampgdk_FindNative("mysql_connect"), "ssssi", host, user, db, pass, port);
}