Mysql R39-2 save problem
#8

i have load password in the query , okay take a look

OnPlayerConnect

pawn Код:
new query[128];
    mysql_format(database, query, sizeof(query),"SELECT `Password`, `ID` FROM `users` WHERE `PlayerName` = '%e' LIMIT 1", GetPlayerNameEx(playerid));
    mysql_tquery(database, query, "OnAccountCheck", "i", playerid);
OnAccountCheck

pawn Код:
public OnAccountCheck(playerid)
{
    new rows, fields;
    cache_get_data(rows, fields, database);
    if(rows)
    {
        cache_get_field_content(0, "Password", APlayerData[playerid][PlayerPassword], database, 129);
        APlayerData[playerid][CompteID] = cache_get_field_content_int(0, "ID");
        printf("%s", APlayerData[playerid][PlayerPassword]);
        ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, TXT_DialogLoginTitle, TXT_DialogLoginMsg, TXT_DialogLoginButton1, TXT_DialogButtonCancel);
    }
    else
    {
        new strStartRules[2000];

        ShowPlayerDialog(playerid, DialogStartRules, DIALOG_STYLE_MSGBOX, "Rиglement du serveur", strStartRules, "Refuser", "Accepter");
    }
    printf("SERVER STATS : ACCOUNT CHECK");
    return 1;
}
Reply


Messages In This Thread
Mysql R39-2 save problem - by AlexBlack - 19.03.2015, 00:46
Re: Mysql R39-2 save problem - by X337 - 19.03.2015, 01:36
Re: Mysql R39-2 save problem - by X337 - 19.03.2015, 01:55
Re : Mysql R39-2 save problem - by AlexBlack - 19.03.2015, 02:37
Re: Mysql R39-2 save problem - by X337 - 19.03.2015, 02:47
Re : Mysql R39-2 save problem - by AlexBlack - 19.03.2015, 02:52
Re: Mysql R39-2 save problem - by X337 - 19.03.2015, 03:10
Re : Mysql R39-2 save problem - by AlexBlack - 19.03.2015, 03:15
Re : Mysql R39-2 save problem - by AlexBlack - 19.03.2015, 12:58
Re: Mysql R39-2 save problem - by Misiur - 19.03.2015, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)