Pawn Compiler Library stopped working
#3

Код:
isEmail(email[])
{
    if (!email[0]) return false;
 
    new
        len = strlen(email),
        arroba = 0,
        ponto = 0;
 
    for(arroba = 0 ; arroba < len; arroba++) {
        if(!(email[arroba] - 64)) {
            for( ponto = arroba; ponto < len; ponto++) {
                if(!(email[ponto] - 46)) {
                    break;
                }
            }
            break;
        }
    }
    return (arroba + 1 < ponto < len && ponto && arroba); //not fixed
}
syntax looks 'for' incorrectly

or
return (arroba + 1 < ponto < len && ponto && arroba);

should return data type -inf, ..., -1, 0, 1, 2, ..., inf or "a", "abc"

and with you it looks like the condition "if"
Reply


Messages In This Thread
Pawn Compiler Library stopped working - by garotin - 07.10.2015, 18:57
Re: Pawn Compiler Library stopped working - by Dusan01 - 07.10.2015, 19:00
Re: Pawn Compiler Library stopped working - by AbyssMorgan - 07.10.2015, 19:10
AW: Re: Pawn Compiler Library stopped working - by Kaliber - 07.10.2015, 19:13
Re: Pawn Compiler Library stopped working - by Ahmad45123 - 07.10.2015, 19:46

Forum Jump:


Users browsing this thread: 2 Guest(s)