enableRadio false;
for (loop !=0)
{
_x hold position
}
enableRadio true;
EhEh! I'm not used to work with C language, but I believe your 'for' structure is the cause of your prob:
< for (loop !=0) >
It means, according to logics, that the loop will continue until the variable "loop" becomes 0. So, if you don't make it 0 while looping, it will continue forever... Therefore, what about this structure, instead:
Enableradio false;
_loop = 0;
while "_loop > (count units Mygroup)" Do {doStop (units MyGroup select _loop); _loop=_loop+1;};
Enableradio true;
However, I don't know why you want this...
The repeating structure is almost instantaneous! Besides, why are you using C lang? OFP does only support its own language - see the
Online Command Reference for more info - and for that reason you can't do your little tricks.
Note: I don't know C lang syntax, but it looks like your 'for' structure is missing lots of arguments...