Porblem with ranges.
#2

Do you break your loops when the result is true?

Код:
if(((x+2.5 >= DropsInfo[i][wp_x][k] && x+2.6 <= DropsInfo[i][wp_x][k]) || (x-2.5 >= DropsInfo[i][wp_x][k] && x-2.6 <= DropsInfo[i][wp_x][k])) && ((y+2.5 >= DropsInfo[i][wp_y][k] && y+2.6 <= DropsInfo[i][wp_y][k]) || (y-2.5 >= DropsInfo[i][wp_y][k] && y-2.6 <= DropsInfo[i][wp_y][k])) && ((z+2.5 >= DropsInfo[i][wp_z][k] && z+2.6 <= DropsInfo[i][wp_z][k]) || (z-2.5 >= DropsInfo[i][wp_x][k] && z-2.6 <= DropsInfo[i][wp_z][k])))
				{
					printf("Fucking Shit works somehow");
                                        break;
				}
				
				if(IsPlayerInRangeOfPoint(playerid,2.5,DropsInfo[i][wp_x][k],DropsInfo[i][wp_y][k],DropsInfo[i][wp_z][k]))
				{
					print("Player Is in range.");
                                        break;
Reply


Messages In This Thread
FIXED: Porblem with ranges. - by AroseKhanNiazi - 05.06.2017, 16:16
Re: Porblem with ranges. - by TonyII - 05.06.2017, 20:37
Re: Porblem with ranges. - by AroseKhanNiazi - 05.06.2017, 20:47
Re: Porblem with ranges. - by AroseKhanNiazi - 05.06.2017, 22:56

Forum Jump:


Users browsing this thread: 1 Guest(s)