Код
public CallBackConnectSQL(Handle:owner, Handle:hndl, const String:error[], any:data)
{
if(hndl == INVALID_HANDLE)
{
LogError("Unable to connect to database, reason: %s", error);
return;
}
SQL_hDB = CloneHandle(hndl);
decl String:query[256];
Format(query, sizeof(query), "CREATE TABLE IF NOT EXISTS bt (steamid VARCHAR(32), time INTEGER(16), admin VARCHAR(32), reason VARCHAR(%d))", REASON_SIZE);
SQL_TQuery(SQL_hDB, CallBackCreateTable, query, DBPrio_High);
}
public CallBackCreateTable(Handle:owner, Handle:hndl, const String:error[], any:data)
{
if(hndl == INVALID_HANDLE)
{
LogError("Could not create table, reason: %s", error);
return;
}
}
Забыл указать SQL_TQuery(SQL_hDB, CallBackLoadPlayer, query, client, DBPrio_Normal); тут показывает что ошибка.