Szerző Téma: Whirlpool login hiba  (Megtekintve 580 alkalommal)

Whirlpool login hiba
« Dátum: 2012. Július 31. - 07:13:51 »
0 Show voters
Szedtem netrõl egy angol modot.
Loginnál akadt egy problémám...
Akárhányszor be akarok lépni, nem fogadja el a jelszót.
Gondolom a Whirlpoolnál nem mûködik valami rendesen.
Melyik sornál lehet a hiba?
 
native WP_Hash(buffer[], len, const str[]);

 

//----------LOGIN--------------
if(dialogid == Logindialog)
{
    if(!response) Kick(playerid);
    static password[132],file[128],buf[149];
    format(file,sizeof file, Userfile,GetPName(playerid));
       WP_Hash(buf, sizeof (buf), inputtext);
 
    INI_Open(file);
    INI_ReadString(password,\"Password\");
    INI_Close();
    if(strcmp(buf,password) == 0)
    {

 


    {
        PInfo[playerid][Failedlogins]++;
        if(PInfo[playerid][Failedlogins] == 3)
        {
                format(buf,sizeof buf,\"%s ki lett rúgva, hibás jelszó miatt. (3/3)\",GetPName(playerid));
                SendAdminMessage(red,buf);
                Kick(playerid);
        }
   format(buf,sizeof buf,\"\"cred\"Attempts left: \"cwhite\"%d \\n\"cred\"Attempts allowed: \"cgreen\"3 \\n\"cwhite\"Please type in your password to \"cligreen\"load \"cwhite\"your status \\n\",3-PInfo[playerid][Failedlogins]);
            ShowPlayerDialog(playerid,Logindialog,3,\"Bejelentkezés\",buf,\"Bejelentkezés\",\"Mégse\");
    }
}

 

//-------REGISZTRÁCIÓ---------
if(dialogid == Registerdialog)
{
        if(strlen(inputtext) < 3 && strlen(inputtext) > 22)
    {
   SendClientMessage(playerid,white,\"» \"cred\"A jelszó minimum 3, maximum 22 karakter lehet!\");
   Kick(playerid);
}
    if(!response) return Kick(playerid);
    static buf[131];
       WP_Hash(buf, sizeof (buf), inputtext);
       RegisterPlayer(playerid,buf);
}
return 0;
}

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Whirlpool login hiba
« Válasz #1 Dátum: 2012. Július 31. - 09:47:21 »
0 Show voters

     PInfo[playerid][Failedlogins]++;
        if(PInfo[playerid][Failedlogins] == 3)
        {
                format(buf,sizeof buf,\"%s ki lett rúgva, hibás jelszó miatt. (3/3)\",GetPName(playerid));
                SendAdminMessage(red,buf);
                Kick(playerid);
        }
   format(buf,sizeof buf,\"\"cred\"Attempts left: \"cwhite\"%d \\n\"cred\"Attempts allowed: \"cgreen\"3 \\n\"cwhite\"Please type in your password to \"cligreen\"load \"cwhite\"your status \\n\",3-PInfo[playerid][Failedlogins]);
            ShowPlayerDialog(playerid,Logindialog,3,\"Bejelentkezés\",buf,\"Bejelentkezés\",\"Mégse\");
    }
}

 
Itt lesz a probléma!  ::|

Nem elérhető TwisT3R

  • 576
  • Küklopsz
  • Discord: TwisT3R#7833
    • Profil megtekintése
    • Firing Squad Clan
Whirlpool login hiba
« Válasz #2 Dátum: 2012. Július 31. - 16:05:08 »
0 Show voters
Idézetet írta: ZyZu date=1343720841\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"25240\" data-ipsquote-contentclass=\"forums_Topic


     PInfo[playerid][Failedlogins]++;
        if(PInfo[playerid][Failedlogins] == 3)
        {
                format(buf,sizeof buf,\"%s ki lett rúgva, hibás jelszó miatt. (3/3)\",GetPName(playerid));
                SendAdminMessage(red,buf);
                Kick(playerid);
        }
   format(buf,sizeof buf,\"\"cred\"Attempts left: \"cwhite\"%d \\n\"cred\"Attempts allowed: \"cgreen\"3 \\n\"cwhite\"Please type in your password to \"cligreen\"load \"cwhite\"your status \\n\",3-PInfo[playerid][Failedlogins]);
            ShowPlayerDialog(playerid,Logindialog,3,\"Bejelentkezés\",buf,\"Bejelentkezés\",\"Mégse\");
    }
}

 
Itt lesz a probléma!  ::|
 
Akkor leírnád h mi a hiba? :question:

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal