Jump to content
  • 0

Cine ma poate ajuta?


FAStingTV

Question

sal am o comanda /play

CMD:play(playerid, params[])
{
  new link[228]; // definim o nouă variabilă numită 'link' care va fi un parametru esențial în executarea comenzii
  if(sscanf(params, "S[228]", link)) return SendClientMessage(playerid, -1, "Folosirea corecta este: /play <link>"); // verifică dacă scriem doar /play fără un LINK,
  PlayAudioStreamForPlayer(playerid, link); // funcția din pawn pentru a executa o melodie.
  return 1;
}
 

vrea cind tatez /play <link> sa pun linkul de la youtube si sa cinte.insa el nu cinta deoarece nu e convertit muzica.Cine ma ajuta sa pun link de la yt si sa cinte? 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Ai nevoie de o functie de genul:

stock YoutubeStreamForPlayer(playerid, vlink[])
{
    new videoid[128],
		mp3link[128];
    strmid(videoid,vlink,strfind(vlink,"v=")+2,strfind(vlink,"v=")+15);
    format(mp3link,128,"http://admigos.net/youtube.php?videoid=%s",videoid);
    PlayAudioStreamForPlayersInCar(GetPlayerVehicleID(playerid),mp3link);
	return 1;
}

 

  • Thanks 1
Link to comment
Share on other sites

  • 0
Acum 3 ore, webby a spus:

Ai nevoie de o functie de genul:


stock YoutubeStreamForPlayer(playerid, vlink[])
{
    new videoid[128],
		mp3link[128];
    strmid(videoid,vlink,strfind(vlink,"v=")+2,strfind(vlink,"v=")+15);
    format(mp3link,128,"http://admigos.net/youtube.php?videoid=%s",videoid);
    PlayAudioStreamForPlayersInCar(GetPlayerVehicleID(playerid),mp3link);
	return 1;
}

 

da nu cinta,pun livk si nu cinta

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.