I can login with wrong password
#10

I'm sorry it's 2:47am :'[ ; sleepy

Код:
        else if(response)
        {
            WP_Hash(hash, sizeof(hash),inputtext);
            if(strcmp(pInfo[playerid][Pass], hash, true) == 0)
            {
                INI_ParseFile(PathData(playerid), "loadaccount_%s", .bExtra = true, .extra = playerid);
                SetPlayerScore(playerid, pInfo[playerid][pScore]);
                GivePlayerMoney(playerid, pInfo[playerid][pMoney]);
                SendClientMessage(playerid, COLOR_LIME, "Welcome back!, You've successfully logged in.");
                SendClientMessage(playerid, -1, "Current life...");
                format(formatit, sizeof(formatit), ""white"Your name account status:\n\nAdminLvl: %i\nVipLvl: %i\nMoney: $%i\nScore: %i\nKills: %i\nDeaths: %i", pInfo[playerid][pAdmin], pInfo[playerid][pVip], pInfo[playerid][pMoney], pInfo[playerid][pScore], pInfo[playerid][pKills], pInfo[playerid][pDeaths]);
                ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, ""white"Status:", formatit, "Ok", "");
                pInfo[playerid][pLog] = 1;
            }
            else
            {
Why do you have the direct value to "0"

Код:
    
          WP_Hash(hash, sizeof(hash),inputtext);
            if(strcmp(pInfo[playerid][Pass], hash, true) == 0)
I feel retarded I think i should go to sleep v-v
---

I'm going to sleep sorry. I don't even know if I helped or not, i'm just to sleepy sorry.
Reply


Messages In This Thread
I can login with wrong password - by JaKe Elite - 25.08.2012, 11:08
Re: I can login with wrong password - by wups - 25.08.2012, 11:26
Re: I can login with wrong password - by JaKe Elite - 25.08.2012, 11:34
Re: I can login with wrong password - by JaKe Elite - 26.08.2012, 04:36
Re: I can login with wrong password - by Akira297 - 26.08.2012, 04:43
Re: I can login with wrong password - by JaKe Elite - 26.08.2012, 05:08
Re: I can login with wrong password - by JaKe Elite - 26.08.2012, 06:19
Re: I can login with wrong password - by Akira297 - 26.08.2012, 06:26
Re: I can login with wrong password - by JaKe Elite - 26.08.2012, 06:28
Re: I can login with wrong password - by Akira297 - 26.08.2012, 06:33

Forum Jump:


Users browsing this thread: 1 Guest(s)