querychannel/stopchannel doesn't work

White Dragon

New member
why when I use query channel get a crash?

for example:

int stop_last_sound() {
    int playid = openborvariant("sample_play_id");
    int channel = querychannel(playid);

    if ( channel >= 0 ) stopchannel(channel);

    return playid;
}
 
Back
Top Bottom