[ajuda]Sistema Anti-dv
#7

pawn Код:
IsAIP(string[])
{
    new
        a,
        b,
        l = -1,
        i = -1;

    while(string[++i])
    {
        if(string[i] > 48 && string[i] < 58)
            a++,l = i;

        if(string[i] == 58 && b == 2 && l == i-1 && ++i && string[i] > 48 && string[i] < 58)
        {
            b = 3;
            goto end;
        }

        if(string[i] == 46 && a > 0 && l == i-1 && b < 2)
            b++,a = 0;
    }
    end:
    return b == 3;
}// by [S]trong
amigo, se olhar algums tуpicos atrбs vai achar um pedido quase igual.
Reply


Messages In This Thread
[ajuda]Sistema Anti-dv - by vitorpedro - 28.08.2011, 00:24
Re: [ajuda]Sistema Anti-dv - by Bruno Pereira - 28.08.2011, 00:27
Re: [ajuda]Sistema Anti-dv - by Ricop522 - 28.08.2011, 00:31
Re: [ajuda]Sistema Anti-dv - by WLSF - 28.08.2011, 00:34
Re: [ajuda]Sistema Anti-dv - by RockFire - 28.08.2011, 03:02
Re: [ajuda]Sistema Anti-dv - by WLSF - 28.08.2011, 03:20
Re: [ajuda]Sistema Anti-dv - by [S]trong - 28.08.2011, 04:17
Re: [ajuda]Sistema Anti-dv - by vitorpedro - 28.08.2011, 05:01
Re: [ajuda]Sistema Anti-dv - by [S]trong - 28.08.2011, 05:04
Re: [ajuda]Sistema Anti-dv - by MaGnO_357 - 28.08.2011, 05:15

Forum Jump:


Users browsing this thread: 1 Guest(s)