17.01.2015, 15:22
Just found out that modulo operator is not supported with Floats in PAWN
I found this stock by MadeMan maybe this may work
I found this stock by MadeMan maybe this may work
pawn Код:
stock Float:modulus(Float:a, Float:b)
{
while(a > b)
a -= b;
return a;
}
//the if line -->
if(modulus(0.25, amount) != 0.0)return ...