Crashing server
#1

For some reason, this code crashes my server:

pawn Код:
public OnMysqlCheckPass(playerid, password[])
{
    new rows, fields;
    cache_get_data(rows, fields, Gconnection);

    if(rows) {

        new temp[100], newpass[400];
        cache_get_row(0, 37, temp);


       
        format(newpass, 400, "%s%s", temp, password);
        new Query[500];
        format(Query, 500, "SELECT `score` FROM `users` WHERE `username`='%s' AND password='%s'", PlayerName(playerid), newpass);
        mysql_function_query(Gconnection, Query, true, "OnPlayerRequestLogin", "d", playerid);
         
    }
    return 1;
}
Any ideas?
Reply


Messages In This Thread
Crashing server - by thefatshizms - 10.06.2013, 19:09
Re: Crashing server - by thefatshizms - 11.06.2013, 15:17
Re: Crashing server - by SuperViper - 11.06.2013, 15:20
Re: Crashing server - by Vince - 11.06.2013, 15:25
Re: Crashing server - by thefatshizms - 11.06.2013, 15:35
Re: Crashing server - by thefatshizms - 11.06.2013, 16:09
Re: Crashing server - by thefatshizms - 11.06.2013, 16:49
Re: Crashing server - by Vince - 11.06.2013, 17:01
Re: Crashing server - by thefatshizms - 11.06.2013, 17:11
Re: Crashing server - by thefatshizms - 11.06.2013, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)