SA-MP Music - 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: SA-MP Music (
/showthread.php?tid=304687)
SA-MP Music -
Sramm - 19.12.2011
I tried to post the music-0.3d *******.inc help.
Well I want everyone to play, but it does not really succeed ...
Код:
for(new i; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected( i ))
{
*******Stream(i, inputtext);
}
}
So I put on.
The interesting, if only I can hear in my cart.
If someone else puts in, he did not hear it, I just ...
Exists at all? : O
So are the stuff:
Код:
public U2BStream(playerid, response_code, data[])
{
if(response_code == 200)
{
new result[33], u2bstr[33]; new streamedurl[128];
new crypted = strfind(data, "\"h\"", true, 0);
strmid(result,data,crypted+7,crypted+39,strlen(data));
format(u2bstr,sizeof(u2bstr), "%s", result);
format(streamedurl, sizeof(streamedurl), "http://www.*******-mp3.org/get?video_id=%s&h=%s",*******ID, u2bstr);
PlayAudioStreamForPlayer(playerid,streamedurl);
}
else
{
SendClientMessage(playerid, 0xAA3333AA, "Nincs ilyen url!");
}
return 1;
}
stock *******Stream(playerid, vlink[])
{
new videoid[128], *******String[128];
strmid(videoid,vlink,31,44,strlen(vlink));
format(*******String,sizeof(*******String),"www.*******-mp3.org/api/itemInfo/?video_id=%s",videoid);
strmid(*******ID, videoid, 0, 12);
HTTP(playerid,HTTP_GET,*******String,videoid,"U2BStream");
}
}
Thank you in advance!
I'm sorry, I'm Hungarian, this is ****** Translate is an error!
Re: SA-MP Music -
=WoR=G4M3Ov3r - 19.12.2011
I didn't understand anything...
http://forum.sa-mp.com/forumdisplay.php?f=47
Post it here, with your own language.