Okay for some reason something is terribly wrong with this while loop, why?
Code:
var destination[3] = {0};
var oldDest[3] = {0};

while(1)
{wait(1);
		destination[0] = my.destX;
		destination[1] = my.destY;
		
		if(oldDest[0]!=destination[0]||oldDest[1]!=destination[1]) //use to send destionation coords
		{
			oldDest[0] = destination[0];
			oldDest[1] = destination[1];
			
			pMyZoneDest[0] = my.destX;
			pMyZoneDest[1] = my.destY;
			
			send_var(pMyZoneDest);
		//	beep();
		}
}


The if statement is always true... even when my.destX and my.destY DONT CHANGE O_O.
Whats going on? I think i'm assigning something wrong...

Last edited by PrenceOfDarkness; 07/21/08 07:15.

"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.