SA-MP Forums Archive
PlayAudioStreamForPlayer isn't working for version 0.3x - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayAudioStreamForPlayer isn't working for version 0.3x (/showthread.php?tid=448933)



PlayAudioStreamForPlayer isn't working for version 0.3x - Akali - 06.07.2013

Hello
I was make command but it isn't working
Sorry, my bad English
Код:
if(strcmp(cmd, "/monhac", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 3)
	        {
	            ShowPlayerDialog(playerid, 50, DIALOG_STYLE_INPUT, "Dien link download nhac vao o duoi", "Dien link download vao ф o day", "Ok", "Huy bo");
				return 1;
			}
		}
		return 1;
	}
Код:
if(dialogid == 50)
    {
        if(response)
		{
            for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
					StopAudioStreamForPlayer(i);
					PlayAudioStreamForPlayer(i, inputtext);
				}
			}
    	}
	}
Please help me


Re: PlayAudioStreamForPlayer isn't working for version 0.3x - SsHady - 06.07.2013

what's the problem??


Re: PlayAudioStreamForPlayer isn't working for version 0.3x - Akali - 06.07.2013

Code is not working, and not write Audio stream...


Re: PlayAudioStreamForPlayer isn't working for version 0.3x - Akali - 06.07.2013

if you don't understand, i can post the video?


Re: PlayAudioStreamForPlayer isn't working for version 0.3x - wendylorenzo - 06.07.2013

He means, there is no sound, and no notification like "Audio stream: www.132.com/sound.mp3"


Re: PlayAudioStreamForPlayer isn't working for version 0.3x - Akali - 06.07.2013

Thanks you so much!!!


Re: PlayAudioStreamForPlayer isn't working for version 0.3x - Equality - 06.07.2013

Try the same code just without including the stopmusic.. Function


Re : PlayAudioStreamForPlayer isn't working for version 0.3x - Sandiel - 06.07.2013

Quote:
Originally Posted by Akali
Посмотреть сообщение
StopAudioStreamForPlayer(i);
PlayAudioStreamForPlayer(i, inputtext);
Remove the StopAudioStreamForPlayer, cause obviously it's called after the PlayerAudioStreamForPlayer (due to lag I suppose, considering there's no extended delay between them, like a 1 second timer or something)


Re: Re : PlayAudioStreamForPlayer isn't working for version 0.3x - Akali - 06.07.2013

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
Remove the StopAudioStreamForPlayer, cause obviously it's called after the PlayerAudioStreamForPlayer (due to lag I suppose, considering there's not extended delay between them, like a 1 second timer or something)
OMG, I did this and was successful, thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks