[Help] Points System [+rep]
#10

Just found out that modulo operator is not supported with Floats in PAWN
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 ...
Reply


Messages In This Thread
[Help] Points System [+rep] - by Arxalan - 17.01.2015, 09:43
Respuesta: [Help] Points System [+rep] - by JuanStone - 17.01.2015, 10:17
Re: [Help] Points System [+rep] - by Arxalan - 17.01.2015, 10:22
Respuesta: Re: [Help] Points System [+rep] - by JuanStone - 17.01.2015, 10:48
Re: [Help] Points System [+rep] - by Arxalan - 17.01.2015, 14:42
Re: [Help] Points System [+rep] - by BroZeus - 17.01.2015, 14:53
Re: [Help] Points System [+rep] - by Arxalan - 17.01.2015, 15:02
Re: [Help] Points System [+rep] - by BroZeus - 17.01.2015, 15:09
Re: [Help] Points System [+rep] - by Arxalan - 17.01.2015, 15:11
Re: [Help] Points System [+rep] - by BroZeus - 17.01.2015, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)