27.09.2014, 12:31
Quote:
That's verry weird... I've basically copied the exact formula and it still won't work. My try:
pawn Код:
|
pawn Код:
for(new i = 1; i<4; i++)
pawn Код:
for(new Float:i = 1; i<4; i++)
I'm not the best at maths so it's probably something else I'm doing wrong.
This is what I've got now:
pawn Код:
new Float:formula, Float:result, Float:base = 300, string[128];
for(new Float:i = 1; i<4; i++)
{
formula = (i+base*floatpower(2, (i/7)));
result = (formula/4);
format(string, sizeof(string), "For Input: %i, Formula = %i, Result = %i", floatround(i), floatround(formula), floatround(result));
SendClientMessage(playerid, 0xCCFF00AA, string);
}