Nu stiu ce ar putea fi incearca astea:
case DIALOG_NEWPASS: {
if(!response) return 1;
if(strcmp(inputtext, PlayerInfo[playerid][pKey])) return SCM(playerid, COLOR_RED2, "Parola invalida!");
ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password","Type your NEW password bellow!","Done","Close");
}
case DIALOG_NEWPASS1: {
if(response)
{
new length = strlen(inputtext);
if(length == 0 || length > 15) {
SendClientMessage(playerid, COLOR_WHITE, "Please enter another password (maximum 15 characters).");
ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password", "Type your NEW password bellow!","Done","Close");
return 1;
}
if(length > 1 || length < 16) {
new tmppass[64],namee[30], strings[300];
mysql_real_escape_string(inputtext, tmppass);
format(PlayerInfo[playerid][pKey], 50, tmppass);
mysql_format(SQL, strings, sizeof(strings), "UPDATE users SET `password`='%s' WHERE `name`='%s'",PlayerInfo[playerid][pKey], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,strings,"","");
GetPlayerName(playerid, namee, sizeof(namee));
format(strings,sizeof(strings),"%s[user:%d] changed his password.",namee,PlayerInfo[playerid][pSQLID]);
ABroadCast(COLOR_YELLOW, strings,1);
SendClientMessage(playerid, COLOR_GREEN3, "Daca dai parola contului altcuiva, adminii nu te pot ajuta sa-ti recuperezi contul.");
SendClientMessage(playerid, COLOR_GREEN3, "E interzis sa incerci sa vinzi sau sa oferi la schimb contul din joc. Se sanctioneaza cu ban permanent.");
SendClientMessage(playerid, COLOR_YELLOW, "Password changed!");
format(strings,sizeof(strings),"Your new password is: {008080}%s.",tmppass);
SendClientMessage(playerid, COLOR_WHITE,strings);
return 1;
}
else return ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password", "Type your NEW password bellow!","Done","Close");
}
return 1;
}