19.08.2009, 12:09
So i have this function:
and the problem seems to be in uhnd and hhnd. But i cant figure out what.
Код:
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(); }