Reply to script trouble
If you don't have an account, just leave the password field blank.
Im trying to make a script that keeps randomly picking one of 2 sounds and plays them. this is what i got so far
void main( void )
{
int &srand;
int &cricket1 = playsound(12, 0, 0, 0, 0);
int &cricket2 = playsound(50, 0, 0, 0 , 0);
&srand = random(3,1);
if &srand == 1 goto &cricket1
if &srand == 2 goto &cricket2
Loop;
}
the script plays the initinal two sounds but doesnt pick a random one and doesent loop.
void main( void )
{
int &srand;
int &cricket1 = playsound(12, 0, 0, 0, 0);
int &cricket2 = playsound(50, 0, 0, 0 , 0);
&srand = random(3,1);
if &srand == 1 goto &cricket1
if &srand == 2 goto &cricket2
Loop;
}
the script plays the initinal two sounds but doesnt pick a random one and doesent loop.