19.08.2014, 11:59
hi all....
i got a little bit problem here...
i made a register dialog with a password ccomfirmation. when he enter the password, the confirmation dialog showed, but when he re enter the password (on the confirmation dialog), the "register ok" is not printed :/
the register dialog response
the confirmation dialog response
i got a little bit problem here...
i made a register dialog with a password ccomfirmation. when he enter the password, the confirmation dialog showed, but when he re enter the password (on the confirmation dialog), the "register ok" is not printed :/
the register dialog response
pawn Код:
format(RegPass[playerid], 64, inputtext);
ShowPlayerDialogLang(playerid, EN, DIALOG_REGISTER_REENTER, DIALOG_STYLE_PASSWORD, "Register: Confirmation", "{FFFFFF}Please re-enter your password\n\n{DDDDDD}Just for password confirmation", "Register", "Back");
ShowPlayerDialogLang(playerid, ID, DIALOG_REGISTER_REENTER, DIALOG_STYLE_PASSWORD, "Register: Confirmation", "{FFFFFF}Mohon untuk memasukkan kembali password anda\n\n{DDDDDD}Hanya untuk konfirmasi password", "Daftar", "Kembali");
pawn Код:
for(new i; i < 64; i++)
{
if(inputtext[i] != RegPass[playerid][i])
{
ShowPlayerDialogLang(playerid, EN, DIALOG_REGISTER_REENTER, DIALOG_STYLE_PASSWORD, "Register: Confirmation", "{FF0000}Password doesn't match!\n\n{FFFFFF}Please re-enter your password\n\n{DDDDDD}Just for password confirmation", "Register", "Back");
ShowPlayerDialogLang(playerid, ID, DIALOG_REGISTER_REENTER, DIALOG_STYLE_PASSWORD, "Register: Confirmation", "{FF0000}Password tidak cocok!\n\n{FFFFFF}Mohon untuk memasukkan kembali password anda\n\n{DDDDDD}Hanya untuk konfirmasi password", "Daftar", "Kembali");
return 1;
}
}
new escpass[100];
mysql_escape_string(inputtext, escpass);
MySQL_Register(playerid, escpass);
printf("register ok");