1 warning and 1 error!
#4

pawn Код:
if(newkeys == KEY_ANALOG_UP)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return 0;
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0;
        if(!Audio_IsClientConnected(playerid)) return 0;
        new veh = GetPlayerVehicleID(playerid);
        if(IsAVel(veh)) return 0;
        if(VehVolume[veh] >= 0 && VehVolume[veh] < 100 && VehRadio[veh] != 0)
        {
            VehVolume[veh] += 5;
            SetVolume(playerid,VehVolume[veh]);
            for(new s = 1; s < 8; s++)
            {
                if(PassengerInCar[veh][s] != INVALID_PLAYER_ID)
                {
                    if(!Audio_IsClientConnected(s)) continue;
                    if(HandleidForPlayer[s] != 0) SetVolume(PassengerInCar[veh][s],VehVolume[veh]);
                }
            }
        }
    }
pawn Код:
if(newkeys == KEY_ANALOG_DOWN)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return 0;
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0;
        if(!Audio_IsClientConnected(playerid)) return 0;
        new veh = GetPlayerVehicleID(playerid);
        if(IsAVel(veh)) return 0;
        if(VehVolume[veh] > 0 && VehVolume[veh] <= 100 && VehRadio[veh] != 0)
        {
            VehVolume[veh] -= 5;
            SetVolume(playerid,VehVolume[veh]);
            for(new s = 1; s < 8; s++)
            {
                if(PassengerInCar[veh][s] != INVALID_PLAYER_ID)
                {
                    if(!Audio_IsClientConnected(s)) continue;
                    if(HandleidForPlayer[s] != 0) SetVolume(PassengerInCar[veh][s],VehVolume[veh]);
                }
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
1 warning and 1 error! - by HardRock - 18.06.2013, 03:52
Re: 1 warning and 1 error! - by Enforcer501 - 18.06.2013, 04:01
Re: 1 warning and 1 error! - by DJTunes - 18.06.2013, 04:04
Re: 1 warning and 1 error! - by HardRock - 18.06.2013, 08:48
Re: 1 warning and 1 error! - by HardRock - 18.06.2013, 12:45
Re: 1 warning and 1 error! - by HardRock - 18.06.2013, 18:39
Re: 1 warning and 1 error! - by HardRock - 19.06.2013, 18:05
Re: 1 warning and 1 error! - by PrinceKumar - 19.06.2013, 18:57

Forum Jump:


Users browsing this thread: 2 Guest(s)