public OnVehicleMod(playerid,vehicleid,componentid) { if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;} if(playerid!=-1) { new mod=GetModType(componentid); switch (mod) { case 1: { Carlist[playerid][mod1]=componentid; } case 2: { Carlist[playerid][mod2]=componentid; } case 3: { Carlist[playerid][mod3]=componentid; } case 4: { Carlist[playerid][mod4]=componentid; } case 5: { Carlist[playerid][mod5]=componentid; } case 6: { Carlist[playerid][mod6]=componentid; } case 7: { Carlist[playerid][mod7]=componentid; } case 8: { Carlist[playerid][mod8]=componentid; } case 9: { Carlist[playerid][mod9]=componentid; } case 10: { Carlist[playerid][mod10]=componentid; } case 11: { Carlist[playerid][mod11]=componentid; } case 12: { Carlist[playerid][mod12]=componentid; } case 13: { Carlist[playerid][mod13]=componentid; } case 14: { Carlist[playerid][mod14]=componentid; } case 15: { Carlist[playerid][mod15]=componentid; } case 16: { Carlist[playerid][mod16]=componentid; } case 17: { Carlist[playerid][mod17]=componentid; } default: { new string[128]; format(string,128,"Unknown component id: %i",componentid); print(string); } } } return 1; } public OnVehiclePaintjob(playerid,vehicleid, paintjobid) { if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;} if(playerid!=-1) { Carlist[playerid][Paintjob]=paintjobid; } return 1; } public OnVehicleRespray(playerid,vehicleid, color1, color2) { if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;} if(playerid!=-1) { Carlist[playerid][Color1]=color1; Carlist[playerid][Color2]=color2; } return 1; }
C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\serv\pawno\CnR.pw n(3261) : error 025: function heading differs from prototype C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\serv\pawno\CnR.pw n(3292) : error 025: function heading differs from prototype C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\serv\pawno\CnR.pw n(3302) : error 025: function heading differs from prototype |
Originally Posted by a_samp.inc
//Prototypes are the forward lines
forward OnVehicleMod(vehicleid, componentid); forward OnVehiclePaintjob(vehicleid, paintjobid); forward OnVehicleRespray(vehicleid, color1, color2); |
Originally Posted by ♣ ⓐⓢⓢ
Quote:
|
forward OnVehicleMod(playerid,vehiclIEd,componentid);
public OnVehicleMod(playerid,vehicleid,componentid)
{
return 1;
}
forward OnVehicleMod(playerid,vehicleid,componentid);
public OnVehicleMod(playerid,vehicleid,componentid)
{
return 1;
}
GetPlayerFromCarlistCar(vehicleid)
new string[128]; format(string,128,"Unknown component id: %i",componentid); print(string);
printf("Unknown component id: %i", componentid);