Whirlpool help :s
#1

Even tho if I type the correct password, it says wrong password, why?!
pawn Код:
if(dialogid == Logindialog)
    {
        if(!response) return Kick(playerid);
        new password[129],string[128],hashedpassword[129];
        format(file,sizeof(file),"FAdmin/Users/%s.ini",GetPName(playerid));
        INI_Open(file);
        INI_ReadString(hashedpassword,"Password");
        INI_Close();
        WP_Hash(password,129,inputtext);
        if(strcmp(hashedpassword,password) == 0)
        {
            LoadPlayerStats(playerid);
            PInfo[playerid][Regged] = true;
            PInfo[playerid][Logged] = 1;
        }
        else
        {
            PInfo[playerid][Failedlogins]++;
            format(string,sizeof(string),""cred"Attempts left: "cwhite"["corange"%i"cwhite"] \n"cwhite"Please type in your password to login",MAX_FAILED_LOGINS-PInfo[playerid][Failedlogins]);
            ShowPlayerDialog(playerid,Logindialog,1,"Login",string,"Login","");
            if(PInfo[playerid][Failedlogins] == MAX_FAILED_LOGINS)
            {
                format(string,sizeof(string),"%s has been kicked for %i failed logins",GetPName(playerid),MAX_FAILED_LOGINS);
                SendAdminMessage(red,string);
                Kick(playerid);
                SaveIn("Failedlogins",string,1);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Whirlpool help :s - by FireCat - 05.09.2011, 11:12
Re: Whirlpool help :s - by =WoR=Varth - 05.09.2011, 11:16
Re: Whirlpool help :s - by [HiC]TheKiller - 05.09.2011, 11:17
Re: Whirlpool help :s - by FireCat - 05.09.2011, 11:21
Re: Whirlpool help :s - by =WoR=Varth - 05.09.2011, 11:29
Re: Whirlpool help :s - by FireCat - 05.09.2011, 11:30
Re: Whirlpool help :s - by Jack_Leslie - 05.09.2011, 11:32
Re: Whirlpool help :s - by FireCat - 05.09.2011, 11:32
Re: Whirlpool help :s - by =WoR=Varth - 05.09.2011, 11:33
Re: Whirlpool help :s - by [HiC]TheKiller - 05.09.2011, 11:34

Forum Jump:


Users browsing this thread: 4 Guest(s)