Need help with random
#9

Try this: I assume this simpler for this case..?
Код:
forward randcode(playerid);
public randcode(playerid)
{
	new rand = random(3);
 	if (rand == 0)
 	{
     // Random thing number 1 
    }
	if (rand == 1)
 	{
     // Random thing number 2 
	}
	if (rand == 2)
 	{
     // Random thing number 3
    }
    return 1;
}
And you can delete the new RandomCode thing
Reply


Messages In This Thread
Need help with random - by Anthony_Brassi - 28.04.2010, 23:24
Re: Need help with random - by Anthony_Brassi - 29.04.2010, 18:25
Re: Need help with random - by Anthony_Brassi - 30.04.2010, 15:30
Re: Need help with random - by Anthony_Brassi - 01.05.2010, 17:52
Re: Need help with random - by MadeMan - 01.05.2010, 19:00
Re: Need help with random - by Anthony_Brassi - 01.05.2010, 19:28
Re: Need help with random - by Assyria - 01.05.2010, 20:22
Re: Need help with random - by Anthony_Brassi - 01.05.2010, 21:23
Re: Need help with random - by Assyria - 01.05.2010, 22:47
Re: Need help with random - by Anthony_Brassi - 01.05.2010, 22:55

Forum Jump:


Users browsing this thread: 2 Guest(s)