View Single Post
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 02-07-2014 , 17:32   Re: [TF2] Class Target Filters
Reply With Quote #7

You may also want to replace some strings in the StrContains functions:
Spoiler

also

Code:
	new bool:bOpposite;
	if(StrContains(strPattern, "!") == -1)
		bOpposite = true;
As I'm sure you're already aware, StrContains returns -1 if the string was NOT found. So you're setting bOpposite to true if ! was NOT in the @filter.



I find it a little bit ridiculous that the plugin has been downloaded 70 times with NO ONE ELSE reporting these errors over the last 4 months until WildCard chimed in.

Also, you should add this to OnPluginEnd(). Unlike most other things, Sourcemod does NOT seem to automatically handle this when a plugin is unloaded.

Spoiler
__________________

Last edited by ddhoward; 02-07-2014 at 17:44.
ddhoward is offline