Random between 4 numbers
#3

pawn Код:
RandomMatsAmount()
{
    new retVal = 0;
    switch(random(4))
    {
        case 0: retVal = 25000;
        case 1: retVal = 50000;
        case 2: retVal = 75000;
        case 3: retVal = 100000;
    }
    return retVal;
}
Reply


Messages In This Thread
Random between 4 numbers - by Zloto - 05.05.2015, 21:19
Re: Random between 4 numbers - by Kyle - 05.05.2015, 21:21
Re: Random between 4 numbers - by Kar - 05.05.2015, 21:25
Re: Random between 4 numbers - by Zloto - 05.05.2015, 21:36

Forum Jump:


Users browsing this thread: 2 Guest(s)