SA-MP Forums Archive
PlayAudioStreamForPlayer Help. - 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 Help. (/showthread.php?tid=577460)



PlayAudioStreamForPlayer Help. - KamalBakri - 11.06.2015

Well guys, the pictures will explain the bug.



Код:
	if (dialogid == DIALOG_PLAYLIST)
	{
		if (GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) return SendClientMessage2(playerid, COLOR_RED, "Error: You are cuffed!");
		if (response)
		{
			StopAudioStreamForPlayer(playerid);
			new url[256];
			format(url, sizeof(url), "song%d", listitem+1);
			format(url, sizeof(url), "%s", dini_Get(AddDirFile(dir_datafiles, FILE_SONG), url));
			format(url, sizeof(url), "%s", url);
            PlayAudioStreamForPlayer(playerid, url);
  }
		return 1;
	}



Re: PlayAudioStreamForPlayer Help. - KamalBakri - 12.06.2015

HELP?


Re: PlayAudioStreamForPlayer Help. - ProDude - 20.12.2015

Код:
	if (dialogid == DIALOG_PLAYLIST)
	{
		if (GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) return SendClientMessage2(playerid, COLOR_RED, "Error: You are cuffed!");
		if (response)
		{
			StopAudioStreamForPlayer(playerid);
			new url[256];
			format(url, sizeof(url), "song%d", listitem+1);
			format(url, sizeof(url), "%s", dini_Get(AddDirFile(dir_datafiles, FILE_SONG), url));
			format(url, sizeof(url), "%s", url);
            PlayAudioStreamForPlayer(playerid, url);
  }
		return 1;
	}
This will Work