PDA

View Full Version : warning/error


hillko
23/12/2016, 04:29 AM
E:\GTA\SA-MP 0.3.7 R2 Windows Server\pawno\include\YSI\y_iterate.inc(909) : warning 202: number of arguments does not match definition
E:\GTA\SA-MP 0.3.7 R2 Windows Server\pawno\include\YSI\y_iterate.inc(922) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



909 stock DeletePlayerVehicle(playerid, slot)
922 PlayerVehicles[playerid][slot][pCarColor2] = 0;



stock DeletePlayerVehicle(playerid, slot)
{
new query[128];
if (PlayerVehicles[playerid][slot][pCarOwned])
{
format(query, sizeof(query), "DELETE FROM `VEHICLES` WHERE `Name` = '%s' AND `Slot` = '%d'", PlayerName(playerid), slot);
db_query(VehicleDatabase[playerid], query);
PlayerVehicles[playerid][slot][pCarModel] = 0;
PlayerVehicles[playerid][slot][pCarX] = 0.0;
PlayerVehicles[playerid][slot][pCarY] = 0.0;
PlayerVehicles[playerid][slot][pCarZ] = 0.0;
PlayerVehicles[playerid][slot][pCarRot] = 0.0;
PlayerVehicles[playerid][slot][pCarColor1] = 0;
PlayerVehicles[playerid][slot][pCarColor2] = 0;
PlayerVehicles[playerid][slot][pCarPaintjob] = -1;
PlayerVehicles[playerid][slot][pCarMod1] = 0;
PlayerVehicles[playerid][slot][pCarMod2] = 0;
PlayerVehicles[playerid][slot][pCarMod3] = 0;
PlayerVehicles[playerid][slot][pCarMod4] = 0;
PlayerVehicles[playerid][slot][pCarMod5] = 0;
PlayerVehicles[playerid][slot][pCarMod6] = 0;
PlayerVehicles[playerid][slot][pCarMod7] = 0;
PlayerVehicles[playerid][slot][pCarMod8] = 0;
PlayerVehicles[playerid][slot][pCarMod9] = 0;
PlayerVehicles[playerid][slot][pCarMod10] = 0;
PlayerVehicles[playerid][slot][pCarMod11] = 0;
PlayerVehicles[playerid][slot][pCarMod12] = 0;
PlayerVehicles[playerid][slot][pCarMod13] = 0;
PlayerVehicles[playerid][slot][pCarMod14] = 0;
PlayerVehicles[playerid][slot][pCarMod15] = 0;
PlayerVehicles[playerid][slot][pCarMod16] = 0;
PlayerVehicles[playerid][slot][pCarMod17] = 0;
PlayerVehicles[playerid][slot][pCarHasLock] = 0;
PlayerVehicles[playerid][slot][pCarLocked] = 0;
PlayerVehicles[playerid][slot][pCarTrunkCash] = 0;
PlayerVehicles[playerid][slot][pCarTrunkGun1] = 0;
PlayerVehicles[playerid][slot][pCarTrunkGun2] = 0;
PlayerVehicles[playerid][slot][pCarTrunkGun3] = 0;
PlayerVehicles[playerid][slot][pCarTrunkGun4] = 0;
PlayerVehicles[playerid][slot][pCarTrunkAmmo1] = 0;
PlayerVehicles[playerid][slot][pCarTrunkAmmo2] = 0;
PlayerVehicles[playerid][slot][pCarTrunkAmmo3] = 0;
PlayerVehicles[playerid][slot][pCarTrunkAmmo4] = 0;
PlayerVehicles[playerid][slot][pCarSpawned] = 0;
PlayerVehicles[playerid][slot][pCarOwned] = 0;
PlayerVehicles[playerid][slot][pCarInt] = 0;
PlayerVehicles[playerid][slot][pCarWorld] = 0;

if (PlayerVehicles[playerid][slot][pCarID] != 0)
{
UnlockVehicle(PlayerVehicles[playerid][slot][pCarID]);
DestroyVehicle(PlayerVehicles[playerid][slot][pCarID]);
PlayerVehicles[playerid][slot][pCarID] = 0;
}
return 1;
}
return 0;
}

OneDay
23/12/2016, 06:53 AM
update https://github.com/Misiur/YSI-Includes