12.04.2013, 14:42
Quote:
I can't tell you a solution without your updated code!
Please post the code you have now. If you want the player to choose a song, be sure to format the string with choices or the inputtext of the dialog. |
PHP код:
stock PlayAudioStreamForAll(url[])
{
for(new i; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected( i ))
{
PlayAudioStreamForPlayer(i, url, x, y, z, distance);
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MUSIC)
{
if(response)
{
PlayAudioStreamForAll(url);
}
return 1;
}
error 017: undefined symbol "url" - the function that i mentioned right now.
I don't want a specific song or a list of some. I want the player to put any link he want.
I guessed that I should format the string but I need some help on doing this!