Help with float and floatround
#1

So i have this function:

Код:
public UpdateAk()
{
for(new i=0; i<MAX_AKT; i++)
{
new hnd = Aktsia[i][Ind];
new Float:uhnd;
new hhnd;
new ear = Aktsia[i][Ar];
new osa = Ak[i][Os];
new vosa = Ak[i][VOs];
new ovahe = osa - vosa;
uhnd = hnd - (((ear/hnd)/10000) * ovahe);
hhnd = floatround(uhnd,floatround_round);
Akt[i][Ind] = hhnd;
Ak[i][VOs] = osa;
}
SaveAk();
}
and the problem seems to be in uhnd and hhnd. But i cant figure out what.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)