02.07.2012, 17:13
Try with this:
Best regards!
pawn Код:
new query[128], data[256];
GetPlayerName(playerid, pPseudo[playerid], MAX_PLAYER_NAME);
format(query, sizeof(query), "SELECT password FROM members WHERE pseudo = '%s'",pPseudo[playerid]);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows())
{
if(mysql_fetch_field("password", pPassword[playerid]))
{
new sConnexion[128];
format(sConnexion, sizeof(sConnexion), "{009FFB}Hello, {0032FB}%s !\n\n{009FFB}Please enter your password :", pPseudo[playerid]);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Connexion", sConnexion, "Connexion", "Exit");
}
}