INI Help.
#7

Quote:
Originally Posted by povargek
Посмотреть сообщение
Код:
case DIALOG_LOGIN:
        {
            new pwhash[129];
            WP_Hash(pwhash, sizeof(pwhash), inputtext);
            if (!response) return PKick(playerid);
            if(response)
            {
                if(!strcmp(pwhash, PlayerInfo[playerid][pKey]))
                {
                    INI_ParseFile(UserPath(playerid), "loadUserData", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    SetPlayerScore(playerid, PlayerInfo[playerid][pExp]);
				}
     		}
       		else
         	{
          		SendClientMessage(playerid, -1, "{FF0000}Your password is incorrect. Please, talk to an administrator regarding this.");
				PKick(playerid);
     		}
			return 1;
		}
You a check password, when the account is not loaded. The "PlayerInfo[playerid][pKey]" is empty.
So, can I get a fixed code bud?
Reply


Messages In This Thread
INI Help. - by iKevin - 23.04.2016, 17:41
Re: INI Help. - by DarkLored - 23.04.2016, 17:49
Re: INI Help. - by povargek - 23.04.2016, 17:53
Re: INI Help. - by iKevin - 23.04.2016, 17:55
Re: INI Help. - by iKevin - 23.04.2016, 17:59
Re: INI Help. - by povargek - 23.04.2016, 18:03
Re: INI Help. - by iKevin - 23.04.2016, 18:06
Re: INI Help. - by povargek - 23.04.2016, 18:18
Re: INI Help. - by iKevin - 23.04.2016, 18:30
Re: INI Help. - by povargek - 23.04.2016, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)