07.12.2018, 13:12
Hello guys I need to check if in the string is only letters, so I created a stock for this, but it doesn't work.
Here is it:
Please help
Here is it:
PHP код:
stock OnlyLetters(text[])
{
for(new i = 'a'; i <= 'z'; i++)
{
for(new i2 = 'A'; i2 <= 'Z'; i2++)
{
new string[256], string2[256];
format(string, sizeof(string), "%c", i);
format(string2, sizeof(string2), "%c", i2);
if(strfind(text, string, true) == 1 && strfind(text, string2, true) == 1)
{
return 0;
}
}
}
return 1;
}