Max 8 numbers in one chat.
#8

That looks just like my old "IsAnIP" function that I made about ~3 years ago .

Try this, using sscanf:

pawn Код:
stock IsAnIP(ip[])
{
    static
        num[4];

    if (sscanf(ip, "p<.>dddd", num[0], num[1], num[2], num[3]))
    {
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Max 8 numbers in one chat. - by Necip - 14.03.2014, 13:31
Re : Max 8 numbers in one chat. - by Golimad - 14.03.2014, 13:57
Re: Max 8 numbers in one chat. - by Necip - 14.03.2014, 14:12
Re : Max 8 numbers in one chat. - by Golimad - 14.03.2014, 14:18
Re: Max 8 numbers in one chat. - by Necip - 15.03.2014, 13:10
Re : Max 8 numbers in one chat. - by Golimad - 15.03.2014, 13:13
AW: Max 8 numbers in one chat. - by CutX - 15.03.2014, 13:17
Re: Max 8 numbers in one chat. - by Emmet_ - 15.03.2014, 13:20
Re: Max 8 numbers in one chat. - by Djole1337 - 15.03.2014, 13:20
Re: Max 8 numbers in one chat. - by RajatPawar - 15.03.2014, 13:27

Forum Jump:


Users browsing this thread: 2 Guest(s)