SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 28/06/2020, 09:45 PM   #1
KoewBxBcraFt
Little Clucker
 
KoewBxBcraFt's Avatar
 
Join Date: Jun 2019
Location: Brasil/ceara/cedro/zona-rural
Posts: 46
Reputation: 0
Default Bug PlayAudioStreamForPlayer

Quando eu entro no servidor não aparece a música, quando dou /trap a música nao sai, ai queria saber oque era!
Code:
public OnPlayerConnect(playerid)
{

PlayAudioStreamForPlayer(playerid, "https://youtu.be/YnwsMEabmSo");
return 1;
}




// FIM GM
CMD:trap(playerid, params[])
{
SendClientMessage(playerid, VERDE, "Radio on!, parar use: /ptrap");
PlayAudioStreamForPlayer(playerid, "https://www.dropbox.com/s/n5to6vv7az7g2hy/SET%20TRAP%20BR%202020%20-%201%20HORA%20DOS%20MELHORES%20LAN%C3%87AMENTOS%20DO%20TRAP%202020.mp3?dl=0");

return 1;
}
CMD:ptrap(playerid, params[])
{
SendClientMessage(playerid, VERDE, "Radio off!, para usar denovo use: /trap");
StopAudioStreamForPlayer(playerid);

return 1;
}
__________________
KoewBxBcraFt is offline   Reply With Quote
Old 28/06/2020, 10:22 PM   #2
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 98
Reputation: 1
Default Re: Bug PlayAudioStreamForPlayer

link de youtube não funciona, e esse link ai do dropbox nao leva a um player do navegador e sim do dropbox então nao funciona no jogo, recomendo um site mp3 free host vou te passar um, ai é so voce clicar em upload e copiar o link

free mp3 host (clique aqui)
__________________
Hazard is offline   Reply With Quote
Old 28/06/2020, 10:36 PM   #3
KoewBxBcraFt
Little Clucker
 
KoewBxBcraFt's Avatar
 
Join Date: Jun 2019
Location: Brasil/ceara/cedro/zona-rural
Posts: 46
Reputation: 0
Default Re: Bug PlayAudioStreamForPlayer

Quote:
Originally Posted by Hazard View Post
link de youtube não funciona, e esse link ai do dropbox nao leva a um player do navegador e sim do dropbox então nao funciona no jogo, recomendo um site mp3 free host vou te passar um, ai é so voce clicar em upload e copiar o link

free mp3 host (clique aqui)
Quando entro no link da música a música não sai
__________________
KoewBxBcraFt is offline   Reply With Quote
Old 28/06/2020, 10:39 PM   #4
MateGPlay
Big Clucker
 
MateGPlay's Avatar
 
Join Date: Jan 2018
Location: Florianópolis, Santa Catarina
Posts: 112
Reputation: 1
Default Re: Bug PlayAudioStreamForPlayer

Usa assim:
PHP Code:
PlayAudioStreamForPlayer(playerid"https://dl.dropboxusercontent.com/s/n5to6vv7az7g2hy/SET%20TRAP%20BR%202020%20-%201%20HORA%20DOS%20MELHORES%20LAN%C3%87AMENTOS%20DO%20TRAP%202020.mp3?dl=0"); 
__________________
MateGPlay is online now   Reply With Quote
Old 28/06/2020, 10:55 PM   #5
KoewBxBcraFt
Little Clucker
 
KoewBxBcraFt's Avatar
 
Join Date: Jun 2019
Location: Brasil/ceara/cedro/zona-rural
Posts: 46
Reputation: 0
Default Re: Bug PlayAudioStreamForPlayer

Quote:
Originally Posted by Hazard View Post
link de youtube não funciona, e esse link ai do dropbox nao leva a um player do navegador e sim do dropbox então nao funciona no jogo, recomendo um site mp3 free host vou te passar um, ai é so voce clicar em upload e copiar o link

free mp3 host (clique aqui)
Contínua a não pegar.

Se você poder upar ou me mandar um IP de rádio online traz agradeço de coração!
__________________
KoewBxBcraFt is offline   Reply With Quote
Old 28/06/2020, 11:11 PM   #6
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 98
Reputation: 1
Default Re: Bug PlayAudioStreamForPlayer

algumas podem esta off copia só o link que vai de http até o |

Code:
 stream_data[0]: "http://stream.zeno.fm/342u05cu92quv|Beat 98 FM - Rio de Janeiro-RJ|Hits|BR|128|0"
 stream_data[1]: "http://stream.zeno.fm/sdyr7ts348quv|Alto Som FM - Cuiabá MT|Hits|BR|128|0"
 stream_data[2]: "http://stream.zeno.fm/pp8623d6z5quv|Dance Antigo - Brasil|Dance|BR|128|0"
 stream_data[3]: "http://stream.zeno.fm/eyx0adx3f3quv|PARADAO SERTANEJO - Brasil|Sertanejo|BR|128|0"
 stream_data[4]: "http://stream.zeno.fm/w12tumk9y5quv|Pop Rock Brasil - Belo Horizonte-MG|Pop Rock|BR|128|0"
 stream_data[5]: "http://stream.zeno.fm/8qtdd0nnf6quv|Radio Nova Hits - São Paulo-SP|Pop|BR|128|0"
 stream_data[6]: "http://stream.zeno.fm/z6gcmdntm3quv|Multimidia FM - Curitiba PR|Alternativa|BR|128|0"
 stream_data[7]: "http://stream.zeno.fm/qangr788e3quv|MPB FM - Goiânia GO|Mpb|BR|128|0"
 stream_data[8]: "http://stream.zeno.fm/eytdw465f3quv|MPB Brasil - Brasília DF|Mpb|BR|128|0"
 stream_data[9]: "http://stream.zeno.fm/k0cmgkcpn3quv|Louvor FM - Vitória ES|Gospel|BR|128|0"
 stream_data[10]: "http://stream.zeno.fm/a2hnxfndd3quv|Radio Light Rio - Rio de Janeiro RJ|Rock|BR|128|0"
 stream_data[11]: "http://stream.zeno.fm/74uhrt6pn3quv|Radio Forró Bodó - Caruaru PE|Forró|BR|128|0"
 stream_data[12]: "http://stream.zeno.fm/g3556gtum3quv|Forró Brega - Vitória da Conquista BA|Forró|BR|128|0"
 stream_data[13]: "http://stream.zeno.fm/dnvm2ttmt0quv|Cidade FM - Rio de Janeiro RJ|Rock|BR|128|0"
 stream_data[14]: "http://stream.zeno.fm/266ks8c8y5quv|Batucada - Rio de Janeiro RJ|Pagode|BR|128|0"
 stream_data[15]: "http://200.98.206.233:8005/;stream.mp3|Band FM - Eunapolis - 96.3|Tudo|BR|128|0"
 stream_data[16]: "http://stream.zeno.fm/6w9t0g80g3quv|Axé Brasil - Salvador BA|Axé|BR|128|0"
 stream_data[17]: "http://painel.clube.upx.net.br:8069/;|Clube FM - 100.5|HiTs|BR|128|0"
 stream_data[18]: "http://stream.zeno.fm/2qa64p8u92quv|Atividade FM - Palmas TO|Anos 2000|BR|128|0"
 stream_data[19]: "http://stream.zenolive.com/sxqqgnqpn3quv|Rádio Funk Brasil - RJ|Funk|BR|128|0"
 stream_data[20]: "http://208.115.213.242:8655/;stream.mp3|Otima FM - 90.3|Populares|BR|128|0"
 stream_data[21]: "http://192.163.244.136:9982/;|107 FM - Pindamonhangaba|HiTs|BR|128|0"
__________________
Hazard is offline   Reply With Quote
Old 29/06/2020, 01:29 AM   #7
MaddDogg
Little Clucker
 
Join Date: Apr 2020
Location: State of San Andreas
Posts: 34
Reputation: 5
Default Re: Bug PlayAudioStreamForPlayer

Quote:
Originally Posted by MateGPlay View Post
Usa assim:
PHP Code:
PlayAudioStreamForPlayer(playerid"https://dl.dropboxusercontent.com/s/n5to6vv7az7g2hy/SET%20TRAP%20BR%202020%20-%201%20HORA%20DOS%20MELHORES%20LAN%C3%87AMENTOS%20DO%20TRAP%202020.mp3?dl=0"); 
Tenta desse jeito que dá!!!
MaddDogg is offline   Reply With Quote
Old 29/06/2020, 10:50 AM   #8
KoewBxBcraFt
Little Clucker
 
KoewBxBcraFt's Avatar
 
Join Date: Jun 2019
Location: Brasil/ceara/cedro/zona-rural
Posts: 46
Reputation: 0
Default Re: Bug PlayAudioStreamForPlayer

Quote:
Originally Posted by MaddDogg View Post
Tenta desse jeito que dá!!!
Oque mudou nisso? Se poder dizer porque preciso upar mas musicas
__________________
KoewBxBcraFt is offline   Reply With Quote
Old 29/06/2020, 10:53 AM   #9
KoewBxBcraFt
Little Clucker
 
KoewBxBcraFt's Avatar
 
Join Date: Jun 2019
Location: Brasil/ceara/cedro/zona-rural
Posts: 46
Reputation: 0
Default Re: Bug PlayAudioStreamForPlayer

Quote:
Originally Posted by Hazard View Post
algumas podem esta off copia só o link que vai de http até o |

Code:
 stream_data[0]: "http://stream.zeno.fm/342u05cu92quv|Beat 98 FM - Rio de Janeiro-RJ|Hits|BR|128|0"
 stream_data[1]: "http://stream.zeno.fm/sdyr7ts348quv|Alto Som FM - Cuiabá MT|Hits|BR|128|0"
 stream_data[2]: "http://stream.zeno.fm/pp8623d6z5quv|Dance Antigo - Brasil|Dance|BR|128|0"
 stream_data[3]: "http://stream.zeno.fm/eyx0adx3f3quv|PARADAO SERTANEJO - Brasil|Sertanejo|BR|128|0"
 stream_data[4]: "http://stream.zeno.fm/w12tumk9y5quv|Pop Rock Brasil - Belo Horizonte-MG|Pop Rock|BR|128|0"
 stream_data[5]: "http://stream.zeno.fm/8qtdd0nnf6quv|Radio Nova Hits - São Paulo-SP|Pop|BR|128|0"
 stream_data[6]: "http://stream.zeno.fm/z6gcmdntm3quv|Multimidia FM - Curitiba PR|Alternativa|BR|128|0"
 stream_data[7]: "http://stream.zeno.fm/qangr788e3quv|MPB FM - Goiânia GO|Mpb|BR|128|0"
 stream_data[8]: "http://stream.zeno.fm/eytdw465f3quv|MPB Brasil - Brasília DF|Mpb|BR|128|0"
 stream_data[9]: "http://stream.zeno.fm/k0cmgkcpn3quv|Louvor FM - Vitória ES|Gospel|BR|128|0"
 stream_data[10]: "http://stream.zeno.fm/a2hnxfndd3quv|Radio Light Rio - Rio de Janeiro RJ|Rock|BR|128|0"
 stream_data[11]: "http://stream.zeno.fm/74uhrt6pn3quv|Radio Forró Bodó - Caruaru PE|Forró|BR|128|0"
 stream_data[12]: "http://stream.zeno.fm/g3556gtum3quv|Forró Brega - Vitória da Conquista BA|Forró|BR|128|0"
 stream_data[13]: "http://stream.zeno.fm/dnvm2ttmt0quv|Cidade FM - Rio de Janeiro RJ|Rock|BR|128|0"
 stream_data[14]: "http://stream.zeno.fm/266ks8c8y5quv|Batucada - Rio de Janeiro RJ|Pagode|BR|128|0"
 stream_data[15]: "http://200.98.206.233:8005/;stream.mp3|Band FM - Eunapolis - 96.3|Tudo|BR|128|0"
 stream_data[16]: "http://stream.zeno.fm/6w9t0g80g3quv|Axé Brasil - Salvador BA|Axé|BR|128|0"
 stream_data[17]: "http://painel.clube.upx.net.br:8069/;|Clube FM - 100.5|HiTs|BR|128|0"
 stream_data[18]: "http://stream.zeno.fm/2qa64p8u92quv|Atividade FM - Palmas TO|Anos 2000|BR|128|0"
 stream_data[19]: "http://stream.zenolive.com/sxqqgnqpn3quv|Rádio Funk Brasil - RJ|Funk|BR|128|0"
 stream_data[20]: "http://208.115.213.242:8655/;stream.mp3|Otima FM - 90.3|Populares|BR|128|0"
 stream_data[21]: "http://192.163.244.136:9982/;|107 FM - Pindamonhangaba|HiTs|BR|128|0"
Vlw amigo
__________________
KoewBxBcraFt is offline   Reply With Quote
Old 29/06/2020, 07:50 PM   #10
MateGPlay
Big Clucker
 
MateGPlay's Avatar
 
Join Date: Jan 2018
Location: Florianópolis, Santa Catarina
Posts: 112
Reputation: 1
Default Re: Bug PlayAudioStreamForPlayer

Quote:
Originally Posted by KoewBxBcraFt View Post
Oque mudou nisso? Se poder dizer porque preciso upar mas musicas
Você pega o link da musica no dropbox e copia do "/s" para frente e coloca na frente desse:
PHP Code:
https://dl.dropboxusercontent.com 
Ai fica Assim:
PHP Code:
https://dl.dropboxusercontent.com/s/n5to6vv7az7g2hy/SET%20TRAP%20BR%202020%20-%201%20HORA%20DOS%20MELHORES%20LAN%C3%87AMENTOS%20DO%20TRAP%202020.mp3?dl=0 
__________________
MateGPlay is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] PlayAudioStreamForPlayer protork Português/Portuguese 3 12/03/2014 05:47 PM
PlayAudioStreamForPlayer lsreskjn Scripting Help 2 14/02/2014 06:07 PM
PlayAudioStreamForPlayer BarFix Scripting Help 3 07/01/2014 04:05 PM
[Ajuda] PlayAudioStreamForPlayer Tugamars Português/Portuguese 13 29/12/2013 07:14 PM
PlayAudioStreamForPlayer Dima_Tkach Scripting Help 6 15/01/2012 12:29 AM


All times are GMT. The time now is 05:56 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.