Razoro, youre code (with the var from Widi) doesen`t work becose of the function
"random_seed(0);", but without "random_seed(0);" there is no sound.
And when I wright it like this;

_______________________________________________________________
SOUND*snd1="shdfkdh.wav";
SOUND*snd2="shdfkfsddh.wav";
SOUND*snd3="shdfksdffddh.wav";

var i=integer(random(3));

function playrandomsound()
{
//deleted//
wait(1);
var i=random(2);
switch(1)//It was "switch(i)"
{
case 0:
snd_play(sound1...);
case 1:
snd_play(sound2...);
case 2:
snd_play(sound3...);
}
}
______________________________________________________________
There should be no warnings.

Last edited by Blackchuck; 02/08/10 21:35.

I have know Gamestudio/A7 Commercial Edition 7.84