27.09.2014, 12:28
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));
}
}