Reply to Problem with random() command
If you don't have an account, just leave the password field blank.
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.", ¤t_sprite);
}
if (&myrand == 2)
{
say_stop("`4Nice stars.Hehehe", ¤t_sprite);
}
if (&myrand == 3)
{
say_stop("`4Is that my bug on the beer?", ¤t_sprite);
}
if (&myrand == 4)
{
say_stop("Are you my wife?", ¤t_sprite);
}
}
When i talk to him hes saying only in if (&myrand == 2) others not.What should i do?
void main(void)
{
int &myrand = random(5, 1);
}
void talk(void)
{
if (&myrand == 1)
{
say_Stop("`4Weeeee.", ¤t_sprite);
}
if (&myrand == 2)
{
say_stop("`4Nice stars.Hehehe", ¤t_sprite);
}
if (&myrand == 3)
{
say_stop("`4Is that my bug on the beer?", ¤t_sprite);
}
if (&myrand == 4)
{
say_stop("Are you my wife?", ¤t_sprite);
}
}
When i talk to him hes saying only in if (&myrand == 2) others not.What should i do?






