PlayAudioStreamForAll
#8

pawn Код:
stock PlayAudioStreamForAll(url[])
{
    for(new i; i<MAX_PLAYERS i++)
    {
        if(IsPlayerConnected( i ))
        {
           
            PlayAudioStreamForPlayer(i, url); //removed x,y,z and distance since you won't need that there
        }
    }
    return 1;

}
Copy paste the code above over your old stock, I fixed the first error there.
Now, all you have to do is this:
pawn Код:
if(response)
        {
            PlayAudioStreamForAll(inputtext);//changed the non-existing 'url' to inputtext
        }
This should do the trick.
Reply


Messages In This Thread
PlayAudioStreamForAll - by eldar7393 - 12.04.2013, 14:01
Re: PlayAudioStreamForAll - by Denying - 12.04.2013, 14:02
Re: PlayAudioStreamForAll - by Pottus - 12.04.2013, 14:04
Re: PlayAudioStreamForAll - by Jstylezzz - 12.04.2013, 14:06
Re: PlayAudioStreamForAll - by eldar7393 - 12.04.2013, 14:10
Re: PlayAudioStreamForAll - by Jstylezzz - 12.04.2013, 14:28
Re: PlayAudioStreamForAll - by eldar7393 - 12.04.2013, 14:42
Re: PlayAudioStreamForAll - by Jstylezzz - 12.04.2013, 15:17
Re: PlayAudioStreamForAll - by eldar7393 - 12.04.2013, 15:20
Re: PlayAudioStreamForAll - by Denying - 12.04.2013, 15:34

Forum Jump:


Users browsing this thread: 2 Guest(s)