SA-MP Forums Archive
Solved - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Solved (/showthread.php?tid=146424)



Solved - RenisiL - 07.05.2010

Solved


Re: Whirpool Password hash [Error] - RenisiL - 07.05.2010

[BUMP]


Re: Whirpool Password hash [Error] - [MWR]Blood - 07.05.2010

You can bump your topic if you don't get reply for 12 hours.

Show lines 67 and 68.


Re: Whirpool Password hash [Error] - RenisiL - 07.05.2010

Quote:
Originally Posted by ikarus❶❸❸❼
You can bump your topic if you don't get reply for 12 hours.

Show lines 67 and 68.
Ohh sorry

67 line: Pass = dini_Get(pFile, "Slaptazodis");
68 line: if(WP_Hash(inputtext) != strval(pass))


Re: Whirpool Password hash [Error] - [MWR]Blood - 07.05.2010

Quote:
Originally Posted by ■ RenisiL ■
Quote:
Originally Posted by ikarus❶❸❸❼
You can bump your topic if you don't get reply for 12 hours.

Show lines 67 and 68.
Or sorry

67 line: Pass = dini_Get(pFile, "Slaptazodis");
68 line: if(WP_Hash(inputtext) != strval(pass))
pawn Код:
new Pass = dini_Get(pFIle, "Slaptazodis");
For 68 I don't know, I don't work with Dini


Re: Whirpool Password hash [Error] - RenisiL - 07.05.2010

Wrong, There is already a Variable.


Re: Whirpool Password hash [Error] - Virtual1ty - 07.05.2010

Try this, I too don't work with Dini, because its slow.
pawn Код:
if(dialogid == 2)
  {
    if(response == 1)
    {
            if(strlen(inputtext))
            {
            new pass[256];
                new buf[145];
                WP_Hash(buf, sizeof(buf), inputtext);
        pass = dini_Get(pFile, "Slaptazodis");
            if(!strcmp(pass, buf, false))
            {
                SendClientMessage(playerid, COLOR_RAUDONA, "[Klaida]: Blogas slaptaћodis !");
                format(w,sizeof(w),"Tu esi uћsiregistraves\n\n\nPraљome prisijungti.",name);
                ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimo Meniu",w,"Prisijungti","Atљaukti");
                }
                else
                {
                    PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
                    PlayerData[playerid][Pinigai] = dini_Int(pFile, "Pinigai");
                    PlayerData[playerid][Exp] = dini_Int(pFile, "Exp");
                    PlayerData[playerid][Mirtys] = dini_Int(pFile, "Mirtys");
                    PlayerData[playerid][Nuzudymai] = dini_Int(pFile, "Nuzudymai");
                    PlayerData[playerid][Ispejimai] = dini_Int(pFile, "Ispejimai");
          PlayerData[playerid][AdminLevel] = dini_Int(pFile, "AdminLevel");
          PlayerData[playerid][ParkourWin] = dini_Int(pFile, "ParkourWin");
          PlayerData[playerid][VIP] = dini_Int(pFile, "VIP");
          PlayerData[playerid][Lygis] = dini_Int(pFile, "Lygis");
                    GivePlayerMoney(playerid, PlayerData[playerid][Pinigai]);
          SetPlayerScore(playerid, PlayerData[playerid][Exp]);

                    PlayerData[playerid][Prisijungtas] = true;
                SendClientMessage(playerid, COLOR_ZALIA, "SERVER INFO: Jus esate sekmingai prijungtas prie accounto, galite testi ћaidima.");
                PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
            printf("%s (ID:%i) Prisijunge prie accounto.", name, playerid);
                }
            }
            else
            {
            SendClientMessage(playerid, COLOR_RAUDONA, "[Klaida]: Jus neivedete slaptaћodћio.");
            format(w,sizeof(w),"Tu esi uћsiregistraves \n\n\nPraљome prisijungti",name);
            ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimo Meniu",w,"Prisijungti","Atљaukti");
            }
    }
    if(response == 0)
    {
        format(w,sizeof(w),"Tu esi uћsiregistraves \n\n\nPraљome prisijungti",name);
        ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimo Meniu",w,"Prisijungti","Atљaukti");
    }
  }



Re: Whirpool Password hash [Error] - RenisiL - 07.05.2010

Thank you, here's my error was very fucker