False login problem
#1

Hi guys... Why when I enter the correct password, it will show me that I have a bad password


Код HTML:
case DIALOG_LOGIN:
		{
			if ( !response ) return SetTimerEx("KickPublic", 1500, 0, "d", playerid);
			if( response )
			{
				if(!fexist(UserPath(playerid))) return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Přihlбљenн","{ff0000}ERROR:\nNastala chyba so sъbormy !\nSъbor na zapisovanie dбt pre tento ъčet nieje vytvorenэ !!!\n\n{ffffff}Před vstupem do hry se musнљ nejdřнve přihlбsit\nZadej svй heslo:","Potvrdit","");
				else if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Přihlбљenн","{ff0000}Nezadal si heslo !\n{ffffff}Před vstupem do hry se musнљ nejdřнve přihlбsit\nZadej svй heslo:","Potvrdit","");
				else if(strcmp(DOF2_GetString(UserPath(playerid),"Password"),lyrhash(inputtext),true))
				{
					PlayerInfo[playerid][FalseLogin]++;

					if(PlayerInfo[playerid][FalseLogin]<=2)
					{
						new Text2f[256];
						format(Text2f,256,"{ff0000}Љpatnй heslo ! (Warning: %d/3)\n{ffffff}Před vstupem do hry se musнљ nejdřнve přihlбsit\nZadej svй heslo:",PlayerInfo[playerid][FalseLogin]);
						ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Přihlбљenн",Text2f,"Potvrdit","");
					}
					else
					{
						SendClientMessage(playerid,COLOR_WARNING,"Љpatnй heslo ! (Warning 3/3)");
						SetTimerEx("KickPublic", 1500, 0, "d", playerid);
					}
				}
				else
				{

                                        PlayerInfo[playerid][Admin] = DOF2_GetInt( UserPath(playerid),"Admin");
					PlayerInfo[playerid][Gender] = DOF2_GetInt( UserPath(playerid),"Origin");
                                        .............................................. .. . 
Reply


Messages In This Thread
False login problem - by EmpireSk - 24.12.2017, 15:55
Re: False login problem - by Abagail - 24.12.2017, 16:00
Re: False login problem - by EmpireSk - 24.12.2017, 17:38
Re: False login problem - by RogueDrifter - 24.12.2017, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)