Jump to content
  • 0

pomoc Zadavanie hesla - vynimky


Ryso

Dotaz

Chcem spravit, ze hrac moze pri registracii cez dialog pouzit len znaky z PasswordChars[]:

 

new PasswordChars[] = {
"A","B","C","D","E","F","G","H","I","J","K","L","M",
"N","O","P","Q","R","S","T","U","V","W","X","Y","Z",
"a","b","c","d","e","f","g","h","i","j","k","l","m",
"n","o","p","q","r","s","t","u","v","w","x","y","z",
"0","1","2","3","4","5","6","7","8","9"
};
stock PasswordExceptions(string[])
{
for(new i=0; i<63; i++)
{
	if(!strfind(string,PasswordChars[i],true) != -1) return true; // warning 213: tag mismatch
}
return false;
}

v OnDialogResponse:
if(PasswordExceptions(inputtext))
{
SendClientMessage(playerid,COLOR_RED,"Heslo môže obsahovať len písmená a čísla!");
}

 

avsak pise to warning

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...