Weird behavior of #if, invalid instruction
#4

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
Reply


Messages In This Thread
Weird behavior of #if, invalid instruction - by IllidanS4 - 14.05.2015, 21:16
Re: Weird behavior of #if, invalid instruction - by Gammix - 15.05.2015, 05:41
Re: Weird behavior of #if, invalid instruction - by IllidanS4 - 15.05.2015, 14:18
Re: Weird behavior of #if, invalid instruction - by IllidanS4 - 30.05.2015, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)