Problam in the IsEnglish
#1

I made stock that checked if the string is in english .. and it's not work -

PHP код:
stock IsEnglish(TMP[])
{
for(new 
0strlen(TMP); h++)
{
if(
TMP[h] > 'a' && TMP[h] < 'Z') return 1;
else return 
0;
}
return 
1;

what not good here?

Thanks
Reply
#2

try this
pawn Код:
stock IsEnglish(TMP[])
{

for(new h = 0; h < strlen(TMP); h++)
{
if(TMP[h] > 'a' && TMP[h] < 'Z')
{
return 1;
}
else return 0;
}

return 1;
}
or
pawn Код:
stock IsEnglish(TMP[])
{
for(new h = 0; h < strlen(TMP); h++)
{
if(TMP[h] > 'a' && TMP[h] < 'Z') return 1;
}
return 0;
}
Reply
#3

not good ..

help ? it's always thing that is in english !
Reply
#4

May be create array of alphabets like a,b,c...z and check if its in array
Reply
#5

or use my language include
Reply
#6

Quote:
Originally Posted by Tigerkiller
Посмотреть сообщение
or use my language include
the download for the includ not work for me man ..
Reply
#7

jump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)