View Single Post
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-15-2012 , 17:14   Re: [TF2] Take Control of Bots
Reply With Quote #6

Looks nice.

PHP Code:
if (StrContains(sample"pain"false) && bHideDeath[iEntity]) 
StrContains doesn't return a bool, it returns a position in the string where the sample is contained, and -1 on failure. Are you trying to do this instead?

PHP Code:
if (StrContains(sample"pain"false) != -&& bHideDeath[iEntity]) 
__________________
Dr. McKay is offline