new random
#3

Quote:
Originally Posted by Skimmer
View Post
No need to initialize random values within each case. Also the brackets are useless there.

pawn Code:
new rand = random(5);
switch(rand)
{
    case 0:
    {

    }
    case 1:
    {

    }
    case 2:
    {

    }
    case 3:
    {

    }
    case 4:
    {

    }
}
you not understand, in each case i have a'n random man
Reply


Messages In This Thread
new random - by Calinut200 - 21.05.2020, 14:29
Re: new random - by Skimmer - 21.05.2020, 14:40
Re: new random - by Calinut200 - 21.05.2020, 16:48
Re: new random - by Adamoneoone - 21.05.2020, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)