Error Message
#4

Here's all of it

pawn Код:
CMD:radiostation(playerid, params[])
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        new radiostation;
        new carID;
        new string[256];
        carID = GetPlayerVehicleID(playerid);
        if(!sscanf(params, "i", radiostation))
        {
            if(radiostation < 1 || radiostation > 3)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "   The radio station must be between 1 and 3!");
                return 1;
            }
            else if(radiostation == 1)
            {
            Audio_Stop(playerid,1);
            Audio_Stop(playerid,2);
            Audio_Stop(playerid,3);
            Audio_Stop(playerid,4);
            Audio_Stop(playerid,5);
            Audio_PlayStreamed(playerid, "http://www.hot108.com/hot108.pls", false, false, false);
            RadioPlaying[carID] = radiostation;
            ShowSubtitle(playerid, "Radio changed, now playing: Hot 108 Jamz!.", 1000, 1);
            format(string, sizeof(string), "* %s changed the radio station to Hot 108 Jamz.", PlayerNameEx(playerid));
            ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            ListeningToRadio[playerid] = 1;
            return 1;
            }
Reply


Messages In This Thread
Error Message - by ScriptFohLife - 05.11.2014, 08:23
Re: Error Message - by HY - 05.11.2014, 08:30
Re: Error Message - by Runn3R - 05.11.2014, 08:33
Re: Error Message - by ScriptFohLife - 05.11.2014, 08:42
Re: Error Message - by DaniceMcHarley - 05.11.2014, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)