MySQL saving IP problem
#4

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;
}
Reply


Messages In This Thread
MySQL saving IP problem - by andrew2695 - 11.12.2012, 16:12
Re: MySQL saving IP problem - by iggy1 - 11.12.2012, 16:18
Re : MySQL saving IP problem - by andrew2695 - 11.12.2012, 16:28
Re: MySQL saving IP problem - by iggy1 - 11.12.2012, 16:33
Re : MySQL saving IP problem - by andrew2695 - 11.12.2012, 16:45
Re: Re : MySQL saving IP problem - by InfiniTy. - 11.12.2012, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)