Password Lengh
#7

pawn Код:
stock IsLetter(c)
{
    return ((c >= 65 && c <= 91) || (c >= 97 && c <= 123)) ? true : false;
}

// Under on OnDialogResponse
new bool:valid = false;
for(new i = 0; i < strlen(inputtext); i++)
{
    if(IsLetter(inputtext[i]))
    {
        valid = true;
        break;
    }
}
if(valid)
{
    // Success code
}
else
{
    SendClientMessage(playerid, COLOR, "Your password must contain at least one character");
}
Reply


Messages In This Thread
Password Lengh - by Blackazur - 16.07.2013, 22:15
Re: Password Lengh - by nor15 - 16.07.2013, 22:31
Re: Password Lengh - by OrMisicL - 16.07.2013, 22:52
Re: Password Lengh - by Scenario - 16.07.2013, 22:54
Re: Password Lengh - by OrMisicL - 16.07.2013, 22:57
AW: Password Lengh - by Blackazur - 16.07.2013, 23:12
Re: Password Lengh - by OrMisicL - 16.07.2013, 23:24
AW: Password Lengh - by Blackazur - 16.07.2013, 23:29
Re: Password Lengh - by ThePhenix - 16.07.2013, 23:54
AW: Password Lengh - by Blackazur - 16.07.2013, 23:59

Forum Jump:


Users browsing this thread: 1 Guest(s)