SA-MP Forums Archive
[Ajuda] PlayAudioStremForAll - 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] PlayAudioStremForAll (/showthread.php?tid=594232)



PlayAudioStremForAll - MaTheuSs - 15.11.2015

Criei esse comando:
Code:
if (strcmp("/music", cmdtext, true) == 0)
    {
     for( new u; u < MAX_PLAYERS; u++ )
     {
          PlayAudioStreamForAll( u, "http://a.tumblr.com/tumblr_lv6j7nYOcU1qe6lsoo1.mp3" );
     }
     return 1;
    }
Porйm da este erro
Code:
C:\[SOAD]\gamemodes\dten.pwn(5292) : error 017: undefined symbol "PlayAudioStreamForAll"
Oque tem de errado ?


Re: PlayAudioStremForAll - matheusspohr - 15.11.2015

Use:
PlayAudioStreamForPlayer no lugar de PlayAudioStreamForAll.


Re: PlayAudioStremForAll - MaTheuSs - 15.11.2015

Se eu usar isso, a mъsica so vai pegar para o player, eu quero que pegue para todos do servidor ouvirem saca ?


Re: PlayAudioStremForAll - matheusspohr - 15.11.2015

E o loop ta servindo pra que? Sacas?


Re: PlayAudioStremForAll - CZ - 15.11.2015

PlayAudioStreamForAll - й pra toca pra todo mundo e pq vc fez o loop?


Re: PlayAudioStremForAll - CZ - 15.11.2015

PHP Code:
if(strcmp(cmd"/music"true) == 0)
{
    for(new 
iMAX_PLAYERSi++)
    {
        
PlayAudioStreamForPlayer(i"url");
    }
    return 
1;    




Re: PlayAudioStremForAll - MaTheuSs - 15.11.2015

valeu cara, funcionou. +ReP