16.02.2009, 21:13
Can some1 explain me how to fiz this compiler error?
ty vm
Quote:
error 025: function heading differs from prototype |

error 025: function heading differs from prototype |
forward Blah(playerid,gun);
public Blah()
{
//
}
Originally Posted by Pawn documentation, the thing you should read before posting:
025 function heading differs from prototype
The number of arguments given at a previous declaration of the function does not match the number of arguments given at the current declaration. |
forward OnVehicleMod(vehicleid, componentid); |
public OnVehicleMod(vehicleid, componentid) { if(vehicleid >= nstaticcars) { vehicleid = vehicleid - nstaticcars; SaveComponent(vehicleid,componentid); } |
public OnVehiclePaintjob(vehicleid, paintjobid) { if(vehicleid >= nstaticcars) { if(IsaCarforsell(vehicleid) == 0) { new carnfoid; carnfoid = vehicleid - nstaticcars; CarsInfo[carnfoid][cpaintjob] = paintjobid; } } } |
public OnVehicleRespray(vehicleid, color1, color2) { if(vehicleid >= nstaticcars) { if(IsaCarforsell(vehicleid) == 0) { new carnfoid; carnfoid = vehicleid - nstaticcars; CarsInfo[carnfoid][ccolor1] = color1; CarsInfo[carnfoid][ccolor2] = color2; } } } |
Originally Posted by Shellegg
the green //?
So i must delete that? |
(111)error 025: function heading differs from prototype |
forward OnVehicleMod(vehicleid, vehid, componentid); |
public OnVehicleMod(playerid,vehicleid,componentid)