Server freeze / Crash
#8

Okay, that works but it now interferes with the Login / Register script. Even if the account is registered it says that it is not and makes a new entry. I have put in the code you have said above, this is my Register / Login dialogue.

pawn Код:
stock InitConnection(playerid)
{
    new
        Query[90],
        EscName[MAX_PLAYER_NAME];

    mysql_real_escape_string(pName(playerid), EscName);

    format(Query, sizeof(Query), "SELECT * FROM `playerinfo` WHERE `username` = '%s'", EscName);
    mysql_query(Query);
    mysql_store_result();

    if(mysql_num_rows() != 0)
    {
        format(Msg, sizeof(Msg), "Please enter your password below to log onto your account\n", pName(playerid), playerid);
        DialogPassword(playerid, LOGIN, "Account Login", Msg, "Login", "Leave");
    }
    else
    {
        format(Msg, sizeof(Msg), "This account is not registered, please enter a password below to continue\n", pName(playerid), playerid);
        DialogPassword(playerid, REGISTER, "Account Registration", Msg, "Register", "Leave");
    }
    mysql_free_result();
}
I cannot find where it conflicts either.
Reply


Messages In This Thread
Server freeze / Crash - by vIBIENNYx - 25.06.2012, 17:28
Re: Server freeze / Crash - by Jason` - 25.06.2012, 17:37
Re: Server freeze / Crash - by vIBIENNYx - 25.06.2012, 17:46
Re: Server freeze / Crash - by leonardo1434 - 25.06.2012, 17:52
Re: Server freeze / Crash - by Jason` - 25.06.2012, 17:53
Re: Server freeze / Crash - by vIBIENNYx - 25.06.2012, 18:45
Re: Server freeze / Crash - by dowster - 25.06.2012, 19:03
Re: Server freeze / Crash - by vIBIENNYx - 25.06.2012, 19:28
Re: Server freeze / Crash - by dowster - 25.06.2012, 19:34
Re: Server freeze / Crash - by dowster - 25.06.2012, 19:36

Forum Jump:


Users browsing this thread: 2 Guest(s)