The Dink Network

Reply to script trouble

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
March 5th 2004, 12:09 PM
pillbug.gif
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.