Password lenght when registering
#1

How do i make if the password has <6 and >20 words and that shows a warning?
Код:
if(dialogid==REGISTRACIJA)
	{
		if(response==0)
		{
			ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{FF0000}                  GREЉKA","{FF0000}_______________________________\n\n      Odustali ste od registracije pa\n\n          ste izbaceni sa servera!\n\n_______________________________","Izadi","");
			Kick(playerid);
			return 1;
		}
		if(response==1)
		{
			if(!strlen(inputtext))
			{
				ShowPlayerDialog(playerid,REGISTRACIJA,DIALOG_STYLE_PASSWORD,"{FF0000}                 Registracija","{FF0000}_______________________________\n\n      Molim unesite zeljenu lozinku:\n_______________________________","Registriraj","Odustani");
			}
			else
			{
				Registracija(playerid,inputtext);
				return 1;
			}
		}
	}
the stock is

Код:
stock Registracija(playerid,key[])
{
	new datoteka[64];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
	format(datoteka,sizeof(datoteka),"/korisnici/%s.txt",name);
	dini_Create(datoteka);
	dini_Set(datoteka,"Lozinka",key);
	SetPlayerScore(playerid,0);
	return 1;
}
Reply


Messages In This Thread
How to kick when you failed password for 3 times? - by MarinacMrcina - 12.05.2012, 11:20
Re: Password lenght when registering - by iGetty - 12.05.2012, 11:21
Re: Password lenght when registering - by AndreT - 12.05.2012, 12:00
Re: Password lenght when registering - by MarinacMrcina - 12.05.2012, 12:07
Re: Password lenght when registering - by AndreT - 12.05.2012, 12:29
Re: Password lenght when registering - by MarinacMrcina - 12.05.2012, 13:25
Re: Password lenght when registering - by MarinacMrcina - 12.05.2012, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)