02.07.2016, 14:01
Solved
new bool:flag=false;
for(new i=0;i<sizeof inputtext;i++)
{
if(inputtext[i]=='@')
{
flag=true;
break;
}
}
if(!flag)
{
//if the inputted string does not have @ do the correspondense
}
of course you can example code
PHP код:
|
warning 224: indeterminate array size in "sizeof" expression (symbol "")
Код:
warning 224: indeterminate array size in "sizeof" expression (symbol "") |
new bool:flag=false;
for(new i=0;i<=strlen(inputtext);i++)
{
if(inputtext[i]=='@')
{
flag=true;
break;
}
}
if(!flag)
{
//if the inputted string does not have @ do the correspondense
}
if(strfind(inputtext, "@", true) != -1) { // Yes @ } else { // No @ }