#4

Let's check the error by debugging
pawn Код:
CMD:streamaudio(playerid, params[])
{
    new string[128];
    if(sscanf(params, "s[256]", params)) return SendClientMessage(playerid, -1,"{FF8000}ERROR{FFFFFF}: /stream [url]");
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{AA3333}You are not an RCON Admin.");
    format(string, sizeof(string), "An admin has started global song.[ /stopmusic to stop listening ]");
    SendClientMessageToAll( 0xFFFF00AA, string);
    foreach(Player, i)
    {
        PlayAudioStreamForPlayer(i, params);
    }
    printf("-Audio debug: %s",params);//this will show or help us to find the error
    return 1;
}
And show me the server console logs after using this command

EDIT : I think test it for you now , and working fine for me , make sure that your url are working fine.
Reply


Messages In This Thread
Help - by Gill - 20.12.2013, 16:01
Re: elp. - by Zamora - 20.12.2013, 16:04
Re: elp. - by Gill - 20.12.2013, 16:16
Re: Help - by SilentSoul - 20.12.2013, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)