Problem with warnings.. (Please help!)
#2

This should work:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if(strcmp("/radio", cmdtext, true, 10) == 0)
        {
            SendClientMessage(playerid, COLOR_GREEN, "Използвай: /radio [radio name]");
            SendClientMessage(playerid, COLOR_WHITE, "Radio Names: City, Vitosha, Njoy, Zrock, Dubstep, Voice, Fresh, Veronika, Veselina");
            SendClientMessage(playerid, COLOR_GREEN, "Използвай '/radio off' за да не чуваш радиото в колата!");
            return 1;
        }
        if (strcmp("/Radio City", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://radioreklama.bg/live_mp3.pls");
            return 1;
        }
        if (strcmp("/Radio Vitosha", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://193.108.24.18:8000/vitosha.m3u");
            return 1;
        }
        if (strcmp("/Radio Njoy", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://live.btvradio.bg/njoy.mp3.m3u");
            return 1;
        }
        if (strcmp("/Radio Zrock", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://live.btvradio.bg/z-rock.mp3.m3u");
            return 1;
        }
        if (strcmp("/Radio Dubstep", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://listen.di.fm/public3/dubstep.pls");
            return 1;
        }
        if (strcmp("/Radio Voice", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://193.108.24.18:8000/thevoice.m3u");
            return 1;
        }
        if (strcmp("/Radio Fresh", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://193.108.24.21:8000/fresh.m3u");
            return 1;
        }
        if (strcmp("/Radio Veronika", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://80.72.68.217/veronika.ogg");
            return 1;
        }
        if (strcmp("/Radio Veselina", cmdtext, true) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://193.108.24.18:8000/veselina.m3u");
            return 1;
        }
        if (strcmp("/13", cmdtext, false) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://tunein.com/tuner/?StationId=108531&");
            return 1;
        }
        if (strcmp("/14", cmdtext, false) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://78.159.104.167:80");
            return 1;
        }
        if (strcmp("/15", cmdtext, false) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://50.117.115.211:80");
            return 1;
        }
        if (strcmp("/16", cmdtext, false) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://80.237.159.41:7000");
            return 1;
        }
        if (strcmp("/17", cmdtext, false) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://87.98.131.132:5000");
            return 1;
        }
        if (strcmp("/Radio Telnet", cmdtext, false) == 0)
        {
            PlayAudioStreamForPlayer(playerid, "http://79.124.67.179:8018/listen.pls");
            return 1;
        }
        if (strcmp("/radioff", cmdtext, true) == 0)
        {
            StopAudioStreamForPlayer(playerid);
            return 1;
        }
       
        return 1;
}
Reply


Messages In This Thread
[+REP] Problem with warnings.. - by dundolina - 18.07.2012, 19:33
Re: Problem with warnings.. (Please help!) - by SomebodyAndMe - 18.07.2012, 20:04
Re: Problem with warnings.. (Please help!) - by dundolina - 19.07.2012, 10:01
Re: Problem with warnings.. (Please help!) - by dundolina - 19.07.2012, 12:32
Re: Problem with warnings.. (Please help!) - by Captain_Mani - 19.07.2012, 12:39
Re: Problem with warnings.. (Please help!) - by dundolina - 19.07.2012, 13:04
Re: Problem with warnings.. (Please help!) - by The__ - 19.07.2012, 13:04

Forum Jump:


Users browsing this thread: 1 Guest(s)