15.03.2014, 13:20
That looks just like my old "IsAnIP" function that I made about ~3 years ago .
Try this, using sscanf:
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;
}