Ok .. no the problem is actually that there will be no player pointer.
So your code will never enter that "real" while loop.
It will wait forever

I'm not sure but the pointer plbiped01 should refer to your player model:
Code:
sound snd_hello = <hello_player.wav>; // your wav (adjust)
action statue {
var lv_snd_dist = 100; // 100 quants for play (adjust)
var lv_snd_hdl; // sound handle
// wait for player...
while(plbiped01==null){wait(1);}
// statue loop
while(1){
// play when approaching
if(vec_dist(plbiped01.x,my.x)<lv_snd_dist && !snd_playing(lv_snd_hdl)){
lv_snd_hdl=snd_loop(snd_hello, 100, 0); // play the sound
}
// stop loop
if(vec_dist(plbiped01.x,my.x)>lv_snd_dist && snd_playing(lv_snd_hdl)){
snd_stop(lv_snd_hdl);
}
wait(1);
}
}
Not sure though, as I have never worked with the A6 templates.
EDIT:
It might also be just PLBIPED