[Include] Anti Advertising
#21

Quote:
Originally Posted by Zorono
Посмотреть сообщение
found a new bug or idk
why does it counts this text 'Let's goto ******** and chat there...' as an ADV it kicks me multiple times with false reasons .... and iam not using any another Includes for ADV detect... please some bug fixs
No it does not? I tested it...

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Код:
I sell 2. mp5 for 6.000$, 3uzi for 4.000$, 4mp5 for 200$
Detect an IP. I set fixedSeparation to true, IP become easily undetectable like
Код:
127.0.0 .1
Because... fixedSeparation is set to true!

It works fine. You guys just are expecting too much from a pawn anti-advertising include.

Use regex for better results.

Quote:
Originally Posted by JoaoBorges
Посмотреть сообщение
The include don't work, bro!
If you say so.

Quote:
Originally Posted by Yousha
Посмотреть сообщение
Код:
public OnPlayerText(playerid, text[])
{
	if (stringContainsIP(text, false, true))
	{
default.pwn(1927) : error 047: array sizes do not match, or destination array is too small


Also links in your Github Repository must be updated.
Fixed.

Also you gotta set a string length.
Reply
#22

This example won't work -
Код:
public OnPlayerText(playerid, text[])
{
	if(stringContainsIP(text)) {
		SendClientMessage(playerid, "Text blocked for advertising.");
		return 0;
	}
	return 1;
}

Код:
SendClientMessage(playerid, -1, "Text blocked for advertising.");
Good job with the include though, regex usually gives run time error 20 and crashes server randomly.
Reply
#23

Fine, I've updated the include to remove the string length for peope who don't know how to remove it lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)