SA-MP Forums Archive
[Ajuda] Comandos e messagens - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Comandos e messagens (/showthread.php?tid=529495)



Comandos e messagens - Bl4ckN3w - 02.08.2014

Bom gostaria que vocкs pudessem me ajudar tipo tenho o comando de /tocar mas sу que quando o admin usa o cmd sу os outros players ouvem a musica eu gostaria que o admin tambйm pudesse ouvir e os players tambem tudo junto ja tentei ajeita mas nao consegui.

pawn Код:
stock BLigarMP3(playerid, url[])
{
        for(new i=0;i< MAX_PLAYERS; i++)
        {
                if(strlen(url) <= 1) return SendClientMessage(playerid, -1, "ERRO: Digite a URL da mъsica");
                StopAudioStreamForPlayer(i);
                StopAudioStreamForPlayer(playerid);
                PlayAudioStreamForPlayer(i, url);
        }
        return 1;
}



Re: Comandos e messagens - Fenix4000 - 02.08.2014

Vocк se esqueceu de criar a Variavel ''string''
pawn Код:
new string[128];



Re: Comandos e messagens - Bl4ckN3w - 02.08.2014

vlw mano consegui ajeita esse falto so variavel dps que fui perceber agora poderia me ajudar com esse cmd de de tocar musica


Re: Comandos e messagens - Fenix4000 - 02.08.2014

remova o
pawn Код:
StopAudioStreamForPlayer(playerid);



Re: Comandos e messagens - Bl4ckN3w - 02.08.2014

Vlw mano funciono de boa agora vlw +rep