Quote:
Originally Posted by psychonic
@ Tylerist
Code:
new Float:resist = 1.0 - (damageresist[victim]/100.0);
Is this giving the intended result? You're dividing an integer by a float.
I think it should be:
Code:
new Float:resist = 1.0 - (float(damageresist[victim])/100.0);
|
Not an issue.
Code:
stock Float:operator/(oper1, Float:oper2)
{
return FloatDiv(float(oper1), oper2);
}
What's more float/int or int/float will result in an int in most C-style languages. In this case, sourcepawn is no different.
__________________