11.12.2012, 16:33
Looks like your array isn't big enough for the query.
pawn Код:
stock CheckAccount(playerid)
{
new query[100];//not exact but definatly big enough
format(query, sizeof(query), "SELECT ID, Password, Salt, Admin FROM `accounts` WHERE `Name` = '%s' LIMIT 1", Name(playerid));
mysql_function_query(g_Handle, query, true, "OnAccountCheck", "d", playerid);
return 1;
}