[Ajuda] Random
#1

Estou usando essa stock:
pawn Код:
stock RandomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
E estou fazendo uma random aleatуria de musicas.

Exe:

pawn Код:
CMD:escutarmusica(playerid)
{
    new randmu = RandomEx(1, 7), Musicaa[40], String[20];
    if(randmu == 1) Musicaa = "Musica Code";
    else if(randmu == 2) Musicaa = "Musica Code";
    else if(randmu == 3) Musicaa = "Musica Code";
    else if(randmu == 4) Musicaa = "Musica Code";
    else if(randmu == 5) Musicaa = "Musica Code";
    else if(randmu == 6) Musicaa = "Musica Code";
    else if(randmu == 7) Musicaa = "Musica Code";
    format(String, sizeof(String), "Musica %d", randmu);
    SendClientMessage(playerid, -1, String);
    return 1;
}
Mas eu quero fazer, que NUNCA repita a mesma random.

Porque as vezes, repete a mesma mъsica.

Tem algum jeito de fazer a random, nгo repetir?
Reply


Messages In This Thread
Random - by xPaulistaa - 01.01.2014, 15:43
Re: Random - by Blitz22 - 01.01.2014, 16:00
Re: Random - by xPaulistaa - 01.01.2014, 16:06
Re: Random - by PT - 01.01.2014, 16:54
Re: Random - by xPaulistaa - 01.01.2014, 17:32
Re: Random - by Schocc - 01.01.2014, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)