Login script allows any password
#1

When ive registered the server places the password in the user file but when i come to actually logging in say my password is password123 and i enter asdfjasdfjkf it still accepts it. Heres the code:

Код:
case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(!strlen(inputtext)) {
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""WHITE"Login",""RED"You have entered an invalid password.\n"WHITE"Type your password below to login.","Login","Quit");
                }

                if(INI_Open(getINI(playerid))) {
                INI_ReadString(PlayerInfo[playerid][Pass],"Pass",20);

                if(strcmp(inputtext,PlayerInfo[playerid][Pass],false)) {
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit");
                }
                new Float:x, Float:y, Float:z, Float:a;
                SetPlayerScore(playerid, INI_ReadInt("Score"));
                ResetPlayerMoney(playerid);
                GivePlayerMoney(playerid, INI_ReadInt("Cash"));
				PlayerInfo[playerid][Admin] = INI_ReadInt("Admin");
				PlayerInfo[playerid][Skin] = INI_ReadInt("Skin");
				x = INI_ReadFloat("Savedpositionx");
				y = INI_ReadFloat("Savedpositiony");
				z = INI_ReadFloat("Savedpositionz");
				a = INI_ReadFloat("Savedpositiona");
				SetSpawnInfo(playerid, 0, PlayerInfo[playerid][Skin], x, y, z, a, 0, 0, 0, 0, 0, 0);
				SetPlayerInterior(playerid, 3);
				SpawnPlayer(playerid);
				INI_Close();
    			
                }
            }
        }
Reply


Messages In This Thread
Login script allows any password - by slymatt - 18.07.2011, 09:09
Re: Login script allows any password - by Bakr - 18.07.2011, 09:12
Re: Login script allows any password - by _Aleksandar - 18.07.2011, 09:12
Re: Login script allows any password - by slymatt - 18.07.2011, 09:16
Re: Login script allows any password - by Bakr - 18.07.2011, 09:20
Re: Login script allows any password - by slymatt - 18.07.2011, 09:23
Re: Login script allows any password - by FireCat - 18.07.2011, 09:30
Re: Login script allows any password - by System64 - 18.07.2011, 09:30
Re: Login script allows any password - by Bakr - 18.07.2011, 09:32
Re: Login script allows any password - by slymatt - 18.07.2011, 09:32
Re: Login script allows any password - by MoroDan - 18.07.2011, 09:34
Re: Login script allows any password - by slymatt - 18.07.2011, 09:34
Re: Login script allows any password - by slymatt - 18.07.2011, 09:40
Re: Login script allows any password - by slymatt - 18.07.2011, 16:09
Re: Login script allows any password - by iggy1 - 18.07.2011, 16:38
Re: Login script allows any password - by _Aleksandar - 18.07.2011, 16:39
Re: Login script allows any password - by slymatt - 18.07.2011, 16:46
Re: Login script allows any password - by slymatt - 18.07.2011, 16:51
Re: Login script allows any password - by Jofi - 18.07.2011, 17:49
Re: Login script allows any password - by slymatt - 18.07.2011, 21:38
Re: Login script allows any password - by tbedy - 19.07.2011, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)