Float:
#1

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!
Код:
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
}
Reply
#2

Floatin(x)
Reply
#3

Quote:
Originally Posted by Marc_307
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!
Код:
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
}
pawn Код:
return _:erg;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)