04.03.2010, 19:02
Hey guys,
the result of the function below should be a float. But I get one warning. Does anybody know how to solve that problem?
Thanks in advance!
the result of the function below should be a float. But I get one warning. Does anybody know how to solve that problem?
Thanks in advance!
Код:
stock sin(x){ new Float:erg=x; for(new i=3,j=0;i<=max_i;i+=2,j++){ if(j%2==0)erg-=pow(x,i)/factorial(i); if(j%2==1)erg+=pow(x,i)/factorial(i); } return erg;//warning 213: tag mismatch }