Pawn with formula calculation
#8

That's verry weird... I've basically copied the exact formula and it still won't work. My try:

pawn Код:
stock formula(l)
{
    new a = 0;
    for(new x = 1; x < l; x++)
    {
        a += floatround(x+300*floatpower(2, (x/7)), floatround_floor);
    }
    return floatround(a/4, floatround_floor);
}

public OnFilterScriptInit()
{
    for(new i = 1; i < 100; i++)
    {
        printf("%i", formula(i));
    }
}
Reply


Messages In This Thread
Pawn with formula calculation - by V1ceC1ty - 27.09.2014, 11:33
Re: Pawn with formula calculation - by thefatshizms - 27.09.2014, 11:39
Re: Pawn with formula calculation - by V1ceC1ty - 27.09.2014, 11:45
Re: Pawn with formula calculation - by thefatshizms - 27.09.2014, 11:52
Re: Pawn with formula calculation - by V1ceC1ty - 27.09.2014, 12:03
Re: Pawn with formula calculation - by Vince - 27.09.2014, 12:08
Re: Pawn with formula calculation - by V1ceC1ty - 27.09.2014, 12:09
Re: Pawn with formula calculation - by thefatshizms - 27.09.2014, 12:28
Re: Pawn with formula calculation - by V1ceC1ty - 27.09.2014, 12:31
Re: Pawn with formula calculation - by thefatshizms - 27.09.2014, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)