1 warning and 1 error!
#1

pawn Код:
(227) : warning 202: number of arguments does not match definition
(240) : error 025: function heading differs from prototype
Warning 202:
pawn Код:
for(new s = 1; s < 8; s++)
Error 025:
pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0;
Reply
#2

Both look fine, the issue is likely somewhere localized to those two functions. We'll need to see a bit more code.
Reply
#3

Quote:
Originally Posted by Enforcer501
Посмотреть сообщение
Both look fine, the issue is likely somewhere localized to those two functions. We'll need to see a bit more code.
Looks like it.
Reply
#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
#5

Help?
Reply
#6

Someone?
Reply
#7

(UP)
Reply
#8

What is the means of IsAVel in ur script...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)