Help Random
#2

Use the random function. Doing something like:

pawn Код:
new RandFlower = random(2);
switch(RandFlower) {
    case 0: {
        pTulip[playerid]++;
        SendClientMessage(playerid, colour, "You picked a Tulip!");
    }
    case 1: {
        pRose[playerid]++;
        SendClientMessage(playerid, colour, "You picked a Rose!");
    }
}
Reply


Messages In This Thread
Help Random - by Dark Crow - 29.04.2012, 07:41
Re: Help Random - by Burridge - 29.04.2012, 07:56
Re: Help Random - by Dark Crow - 29.04.2012, 08:48
Re: Help Random - by Jaxson - 29.04.2012, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)