Music Player - 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: Music Player (
/showthread.php?tid=324433)
Music Player -
DannySnoopy - 09.03.2012
Hello i have seen a tutorial about it, and i'v made it. the command works and all, the dialog opens and etc. but the
songs doesn't play, i assume i know where the problem is i just dunno how to solve it. thanks for the helpers +1 rep!
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MUSICPLAYER)
{
if(response)
{
if(listitem == 0)
{
PlayAudioStreamForPlayer(playerid, "http://www.*******-mp3.org/#v=Y64Rypdt0_s");
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid, "http://www.*******-mp3.org/#v=Y64Rypdt0_s");
}
}
return 1;
}
Re: Music Player -
newbienoob - 09.03.2012
1)Choose a video on ******* that contains your song.
2)Go to
http://www.*******-mp3.org/ and convert your video(song) to mp3 file
3)Click on "Download" and save it
4)Now you will need a site which will host your mp3 files,(I used
http://kiwi6.com/ )
5)Click on "browse",choose your song and click on "Start Upload" and then click on "Saved:"
6)Copy the Direct Hotlink
Re: Music Player -
DannySnoopy - 09.03.2012
Quote:
Originally Posted by newbienoob
1)Choose a video on ******* that contains your song.
2)Go to http://www.*******-mp3.org/ and convert your video(song) to mp3 file
3)Click on "Download" and save it
4)Now you will need a site which will host your mp3 files,(I used http://kiwi6.com/ )
5)Click on "browse",choose your song and click on "Start Upload" and then click on "Saved:"
6)Copy the Direct Hotlink
|
ok ty