View Single Post
Alienmario
Senior Member
Join Date: Aug 2013
Old 06-08-2016 , 12:54   Re: SourceMod 1.8 Now Stable
#22

Some of my plugins stopped working correctly when compiled under 1.8
I've found the problem to be when interpreting minus sign, for example in
PHP Code:
ScaleVector(vecFwd, -(flDamage scale)); 
or
PHP Code:
ScaleVector(vecFwd, (-flDamage scale)); 
Both would always scale the vector by 0.

The workaround:
PHP Code:
ScaleVector(vecFwd, (flDamage scale * -1)); 
Anyways, glad to have 1.8 finally available!
Alienmario is offline