Pm advertisment
#10

Quote:
Originally Posted by Mean
Посмотреть сообщение
You can use this stock (I did not make it).

pawn Код:
stock detectIP(text[])
{
    new
        dotCount
    ;
    for(new i; text[i] != 0; ++i)
    {
        if('0' <= text[i] <= '9')
        {
            do
            {
                if(text[i] == '.') ++dotCount;
                ++i;
            }
            while(('0' <= text[i] <= '9') || text[i] == '.' || text[i] == ':');
        }
        else dotCount = -1;
    }
    return (dotCount > 2);
}
Then you can use:
pawn Код:
if(detectIP(sometext)) {
    // If there's an IP in the text
}
else {
    // No IP in the text
}
You said-----------------------------------------------------
Then you can use:
pawn Код:
if(detectIP(sometext)) {
    // If there's an IP in the text
}
else {
    // No IP in the text
}
Where i should put this codes
Reply


Messages In This Thread
Pm advertisment - by God'Z War - 30.06.2012, 15:03
Re: Pm advertisment - by «XTC» - 30.06.2012, 15:09
Re: Pm advertisment - by God'Z War - 30.06.2012, 15:26
Re: Pm advertisment - by Mean - 30.06.2012, 17:07
Re: Pm advertisment - by Lordzy - 30.06.2012, 17:14
Re: Pm advertisment - by Mean - 30.06.2012, 17:16
Re: Pm advertisment - by Lordzy - 30.06.2012, 17:22
Re: Pm advertisment - by zombieking - 30.06.2012, 17:23
Re: Pm advertisment - by Crazyboobs - 30.06.2012, 17:27
Re: Pm advertisment - by God'Z War - 30.06.2012, 17:48

Forum Jump:


Users browsing this thread: 3 Guest(s)