Okay for some reason something is terribly wrong with this while loop, why?
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...