Solved
#7

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");
    }
  }
Reply


Messages In This Thread
Solved - by RenisiL - 07.05.2010, 12:09
Re: Whirpool Password hash [Error] - by RenisiL - 07.05.2010, 13:03
Re: Whirpool Password hash [Error] - by [MWR]Blood - 07.05.2010, 13:05
Re: Whirpool Password hash [Error] - by RenisiL - 07.05.2010, 13:09
Re: Whirpool Password hash [Error] - by [MWR]Blood - 07.05.2010, 13:12
Re: Whirpool Password hash [Error] - by RenisiL - 07.05.2010, 13:16
Re: Whirpool Password hash [Error] - by Virtual1ty - 07.05.2010, 13:18
Re: Whirpool Password hash [Error] - by RenisiL - 07.05.2010, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)