View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 06-09-2016 , 15:55   Re: SourceMod 1.8 Now Stable
#23

Quote:
Originally Posted by Alienmario View Post
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!
can confirm this happens to me
__________________
retired
shavit is offline