14.12.2019, 15:36
Hello there, i started using SQLite recently, so many questions and problems will arise, one of them is just below, when calling a function to delete a row from my table, it prints in the prompt the error below:
My code:
pawn Code:
[05:19:36] SQLitei Notice: (db_free_result_hook) Invalid result given.
[05:19:36] [debug] AMX backtrace:
[05:19:36] [debug] #0 native PrintBacktrace () from crashdetect.DLL
[05:19:36] [debug] #1 00019984 in ?? (0) from Survive.amx
[05:19:36] [debug] #2 00093a20 in ?? (0) from Survive.amx
[05:19:36] [debug] #3 000938e0 in ?? (0, 5235, 1, 0, 366666296) from Survive.amx
[05:19:36] [debug] #4 000110ec in public OnDialogResponse (0, 5235, 1, 0, 366666296) from Survive.amx
PHP Code:
stock ApagarPlayerClan(playerid)
{
new Query[256], DBResult:Result;
format(Query, sizeof(Query), "DELETE FROM `ServerClan` WHERE `clanNome` = %s", GetPClan(playerid));
Result = db_query(gAccounts, Query);
return db_free_result(Result);
}