#1

How to create this cmd with input url text ?

if(strcmp(cmd, "/dcmuzika", true) == 0)
{
for(new i=0; i<250; i++)
{
PlayAudioStreamForPlayer(i, http://dwmusic.tk/muzika/Dubiosa%20K...0-%20usa.mp3);
}
}
Reply
#2

The url is a string.

Use "URL"
Reply
#3

Thanks.Btw show me error.Error its Undifined symbol URL
Reply
#4

BUMP !
Reply
#5

Code:
if(strcmp(cmd, "/dcmuzika", true) == 0)
{
    ShowPlayerDialog(playerid, 15555, DIALOG_STYLE_INPUT, "Paste your mp3 link", "Please enter MP3 link bellow.", "OK", "Cancel"); //Red John's dialog creator
    return 1;
}
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 15555)
    {
        if(response)
        {
            for(new i=0; i<250; i++)
            {
                PlayAudioStreamForPlayer(i, inputtext[]);
            }
        }
        return 1;
    } 
    return 0;
}
Reply
#6

Why are you guys looping ?

EDIT : ok ok now i know sorry.
Reply
#7

So the Stream can play for all of the players in the server.
Reply
#8

i would like to get Song in The Spawn Request Please Help Me For Helping Me +Rep
Reply
#9

Quote:
Originally Posted by teomakedonija
View Post
How to create this cmd with input url text ?

if(strcmp(cmd, "/dcmuzika", true) == 0)
{
for(new i=0; i<250; i++)
{
PlayAudioStreamForPlayer(i, http://dwmusic.tk/muzika/Dubiosa%20K...0-%20usa.mp3);
}
}
C00K13M0N$73R meant put the URL between quotes (also, for you next topic: if you have code, put them between [pawn][/pawn] or
Quote:
Originally Posted by C00K13M0N$73R
View Post
The url is a string.

Use "URL"
Reply
#10

mamoruni please help me also
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)