Make Random Words
#2

pawn Код:
stock RandomFish() {
    #define TOTAL_FISHES 3;
    new fish[TOTAL_FISHES][32] = { "Trout", "Shark", "Swordfish" };
    return fish[random(TOTAL_FISHES)];
}
@e: This should work as well
pawn Код:
stock RandomFish() {
    new fish[3][32] = { "Trout", "Shark", "Swordfish" };
    return fish[random(sizeof fish)];
}
Reply


Messages In This Thread
Make Random Words - by AphexCCFC - 06.02.2013, 17:23
Re: Make Random Words - by Misiur - 06.02.2013, 17:46
Re: Make Random Words - by Jeffry - 06.02.2013, 17:46
Re: Make Random Words - by DXM - 06.02.2013, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)