30.05.2015, 10:13
Solved it this way:
pawn Code:
#if !defined GetVehicleColor
static vehiclecolor[MAX_VEHICLES][2 char];
stock GetVehicleColorDefault(vehicleid, &color1, &color2)
{
color1 = vehiclecolor[vehicleid]{0};
color1 = vehiclecolor[vehicleid]{1};
}
stock SaveVehicleColor(vehicleid, color1, color2)
{
ChangeVehicleColor(vehicleid, color1, color2);
vehiclecolor[vehicleid]{0} = color1;
vehiclecolor[vehicleid]{1} = color2;
}
#define GetVehicleColor GetVehicleColorDefault
#else
stock SaveVehicleColor(vehicleid, color1, color2)
{
ChangeVehicleColor(vehicleid, color1, color2);
}
#endif