29.01.2014, 19:59
Код:
if(response)
{
new uFile[35];
format(uFile, 35, "users/%s.ini", PlayerName(playerid));
new INI:playerFile = INI_Open(uFile);
new pword[128];
format(pword, sizeof(pword), "%s", Hash(inputtext));
INI_WriteString(playerFile, "Password", pword);
new string[256];
format(string, sizeof(string), "Your password is: %s, your hash password is: %s", inputtext, pword);
SCM(playerid,COLOR_GREEN,string);
//ShowPlayerDialog(playerid,
INI_Close(playerFile);
}
}
For example:
When I enter the password: "123456".
This is the result:
Код:
"Your password is: 1424QT(very wierd), your hash password is: Doesn't mater..."
Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Register", "Please enter a password in order to register to the server.", "Register", "Cancel");

