This is the whole code of public MySQL_TOP10Load (this is all the lines around 259)
PHP Code:
public MySQL_TOP10Load(failstate, Handle:query, error[], errcode, data[], datasize)
{
if(failstate == TQUERY_CONNECT_FAILED)
log_amx("[TTT] Load - Could not connect to SQL database. [%d] %s", errcode, error);
else if(failstate == TQUERY_QUERY_FAILED)
log_amx("[TTT] Load query failed. [%d] %s", errcode, error);
if(SQL_NumResults(query) > 0)
{
for(new num[3], j, i = 0; i < 10; i++)
{
static name[32];
SQL_ReadResult(query, 1, name, charsmax(name));
#if AMXX_VERSION_NUM >= 183
TrieSetString(g_tTop10Players[i], "1", name, true);
#else
TrieSetString(g_tTop10Players[i], "1", name);
#endif
for(j = 2; j < 14; j++)
{
num_to_str(j, num, charsmax(num));
#if AMXX_VERSION_NUM >= 183
TrieSetCell(g_tTop10Players[i], num, SQL_ReadResult(query, j), true);
#else
TrieSetCell(g_tTop10Players[i], num, SQL_ReadResult(query, j));
#endif
}
SQL_NextRow(query);
}
}
SQL_FreeHandle(query);
return PLUGIN_HANDLED;
}
And the line 259 in my .sma is exactly this:
PHP Code:
SQL_ReadResult(query, 1, name, charsmax(name));
Let me know if that is enough info or if u need anymore to be posted, to check that log, this happen when i startup my server or when come the change map.
P.S: Btw i'm using sqlite (ttt_stats 2) i haven't SQL Data Base or something like that, so i dont know if that is the reason because of that appears.