Random gift on vehicle
#6

Instead of putting it into an array which wouldn't work in the first place, just make a stock function.

pawn Код:
#define MAX_RANDOM_GIFTS 3 //The amount of random gifts you have
stock RandomGift(playerid)
{
    new randomgift = random(MAX_RANDOM_GIFTS) + 1;
    switch (randomgift)
    {
        case 1:
        {
            //Do something
        }
        case 2:
        {
            //Do something 2
        }
        case 3:
        {
            //Do something 3
        }
    }
    return 1;
}
Reply


Messages In This Thread
Random gift on vehicle - by Face9000 - 12.01.2012, 10:40
Re: Random gift on vehicle - by ScriptJorkis - 12.01.2012, 10:42
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 10:43
Re: Random gift on vehicle - by Lorenc_ - 12.01.2012, 10:52
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 10:55
Re: Random gift on vehicle - by [HiC]TheKiller - 12.01.2012, 10:57
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 10:59
Re: Random gift on vehicle - by [HiC]TheKiller - 12.01.2012, 11:02
Re: Random gift on vehicle - by Mrki_Drakula - 12.01.2012, 11:03
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 11:05

Forum Jump:


Users browsing this thread: 2 Guest(s)