17.02.2009, 20:46
ok the prototype is:
and what is wrong is: (at least it tells that difers from prototype)
and
Quote:
forward OnVehicleMod(vehicleid, componentid); |
Quote:
public OnVehicleMod(vehicleid, componentid) { if(vehicleid >= nstaticcars) { vehicleid = vehicleid - nstaticcars; SaveComponent(vehicleid,componentid); } |
Quote:
public OnVehiclePaintjob(vehicleid, paintjobid) { if(vehicleid >= nstaticcars) { if(IsaCarforsell(vehicleid) == 0) { new carnfoid; carnfoid = vehicleid - nstaticcars; CarsInfo[carnfoid][cpaintjob] = paintjobid; } } } |
Quote:
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; } } } |