08.10.2014, 18:28
Hello,
When i register and try login again its login fine, and if the password they say " invalid password "
but after sometime i try to login with any password i can login normal.
can anyone help me please?
here is a code i hope can help ya
When i register and try login again its login fine, and if the password they say " invalid password "
but after sometime i try to login with any password i can login normal.
can anyone help me please?
here is a code i hope can help ya
pawn Код:
else if(dialogid == 2) // Login
{
if(response)
{
new file[64], password[256], IP[16], password2[256];
format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
WP_Hash(password2, sizeof(password2), inputtext);
format(password, sizeof(password), "%s", dini_Get(file, "Password"));
if(strcmp(password, inputtext,true) && strcmp(password, password2, true))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Invalid password.");
ShowDialog(playerid, 2);
return 1;
}