[Ajuda] Random
#3

Quote:
Originally Posted by Blitz22
Посмотреть сообщение
Tente assim


pawn Код:
new RandomMusica[3][] = // Nomes Server Random
{
    "Link da musica 1",
    "Link da musica 2",
    "Link da musica 3"
};
 
CMD:escutarmusica(playerid)
{

SendMSG();
}

//Coloque o cуdigo abaixo fora de publics
forward SendMSG();      
public SendMSG()//Aqui a public
{
    new string[256];
    new randMSG = random(sizeof(RandomMusica));
    format(string,sizeof(string),"hostname %s",RandomMusica[randMSG]);
    SendRconCommand(string);
}
Random assim, tambйm repete algumas vezes, pelo menos aqui.
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)