Mysql problem
#8

Try to debug it:
pawn Код:
public OnAccountCheck(playerid)
{
    new rows, fields, string[240], plrIP[16];
    GetPlayerIp(playerid, plrIP, sizeof(plrIP));
    cache_get_data(rows, fields, g_iHandle);
    printf("Rows: %i, Fields: %i", rows, fields);
    if(rows) //if there is row
    {
        cache_get_field_content(0, "Password", APlayerData[playerid][PlayerPassword], g_iHandle, 129);
        APlayerData[playerid][CompteID] = cache_get_field_content_int(0, "ID");
        printf("MDP CHARGE : %i: %s", APlayerData[playerid][Compte], APlayerData[playerid][PlayerPassword]);
        format(string, 2000, TXT_DialogLoginMsg, GetPlayerNameEx(playerid), plrIP);
        ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, TXT_DialogLoginTitle, string, TXT_DialogLoginButton1, TXT_DialogButtonCancel);
    }
    else
    {
        new strStartRules[2000];
                // RULES TEXT
        ShowPlayerDialog(playerid, DialogStartRules, DIALOG_STYLE_MSGBOX, "Rиglement du serveur", strStartRules, "Refuser", "Accepter");
    }
    printf("ETAT DU SERVEUR : CHECK D'UN COMPTE");
    return 1;
}
I've made 2 debugs (one already existed; Password).
Show me what it prints on the console.
Reply


Messages In This Thread
Mysql problem - by AlexBlack - 03.04.2015, 13:36
Re : Mysql problem - by AlexBlack - 03.04.2015, 14:21
Re: Mysql problem - by willsuckformoney - 03.04.2015, 14:38
Re: Mysql problem - by Chlorine - 03.04.2015, 14:53
Re : Mysql problem - by AlexBlack - 03.04.2015, 15:03
Re: Mysql problem - by Chlorine - 03.04.2015, 15:05
Re : Mysql problem - by AlexBlack - 03.04.2015, 15:14
Re: Mysql problem - by Chlorine - 03.04.2015, 15:32
Re : Mysql problem - by AlexBlack - 03.04.2015, 15:45
Re: Mysql problem - by Chlorine - 03.04.2015, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)