26.04.2018, 07:37
how i can when a player at dialog it's input password, check if the password have a number, a big letter and minim 6 characters
CheckPw(password[]){
new cntNumbers,
cntBigLetters,
len=strlen(password);
if(len < 6)return 0;
for(new i; i < len; i++){
switch(password[i]){
case '0'..'9': cntNumbers++;
case 'A'..'Z': cntBigLetters++;
}
}
return (cntNumbers>=3 && cntBigLetters>=3);
}