The Dink Network

Reply to Problem with random() command

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:
 
 
July 9th 2007, 07:11 AM
pq_cthunik.gif
GOKUSSJ6
Peasant He/Him Poland
Everyone should get a pizza for free in each week. 
I have a problem with random() command that i added to this script:
void main(void)
{
int &myrand = random(5, 1);
}
void talk(void)
{
if (&myrand == 1)
{
say_Stop("`4Weeeee.", &current_sprite);
}
if (&myrand == 2)
{
say_stop("`4Nice stars.Hehehe", &current_sprite);
}
if (&myrand == 3)
{
say_stop("`4Is that my bug on the beer?", &current_sprite);
}
if (&myrand == 4)
{
say_stop("Are you my wife?", &current_sprite);
}
}

When i talk to him hes saying only in if (&myrand == 2) others not.What should i do?