The Dink Network

Reply to Re: 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:21 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Whoa, bunny man, I think you've completely forgotten DinkC You're missing parentheses, you can't goto variable names, and some other things. Here's a much more concise version:

void main( void )
{
int &srand;

loop:

&srand = random(2,1);
if (&srand == 1)
{
playsound(12,16000,0,0,0);
}

if (&srand == 2)
{
playsound(50,16000,0,0,0);
}

wait(1000);
goto loop;
}

Change the 16025 numbers to whatever speed the sound is (usually 8000, 16000, or 24000).