01.02.2010, 16:34
Me and my admins ban them immediately
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:
pawn Code:
|
error 029: invalid expression, assumed zero error 001: expected token: ";", but found ")" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line |
else if(text[x] == ':' && IsNumeric(text[x+1]) && && IsNumeric(text[x+2]) && IsNumeric(text[x+3]) && IsNumeric(text[x+4])) count2 = true;
Originally Posted by $ЂЯĢ
Probably fixed now.
EDIT: Nah it wouldn't work either. Someone should put some effort to make precise IP searcher. |
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:
pawn Code:
|
public OnPlayerText(playerid, text[]) { HasTextIp(text); return 1; }
Originally Posted by Shady91
Quote:
|
stock AdvertisementCheck( string[ ] )
{
new count, tmc;
for( new i = 0; i < strlen( string ); i++)
{
if( ! strfind( string[ i ], ".", false ) )
{
count++;
}
if( ! strfind( string[ i ], ":", false ) )
{
tmc++;
}
}
if(count == 3)
{
if(tmc == 1)
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}