PlayAudioStreamForPlayer isn't working for version 0.3x
#1

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
Reply
#2

what's the problem??
Reply
#3

Code is not working, and not write Audio stream...
Reply
#4

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

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

Thanks you so much!!!
Reply
#7

Try the same code just without including the stopmusic.. Function
Reply
#8

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)
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)