Ok so I've created an array that changes all color codes to their text name.
I've gotten a lot of this nearly done, but here's my issue with the colors:
(67531) : error 012: invalid function call, not a valid address
(67531) : warning 202: number of arguments does not match definition
(67531) : warning 202: number of arguments does not match definition
(67531) : warning 215: expression has no effect
(67531) : warning 215: expression has no effect
(67531) : error 001: expected token: ";", but found ")"
(67531) : fatal error 107: too many error messages on one line ( I hate this error lol it states the obvious! Ugh)
Anyways here's the segment:
pawn Код:
if(IsARadar(i) && AlreadyRadar[i] != 1 && SpeedCam == 1)
{
TextDrawShowForPlayer(i,flash);
SetTimerEx("RemoveFlash",CAMERA_FLASH_TIME,false,"i",i);
new zone[MAX_ZONE_NAME];
new idcar = GetPlayerVehicleID(i);
new Float:Angle;
new color1,color2;
color = VehicleColorNames(GetVehicleColor(idcar),color1,color2); //Line 67531
GetPlayer2DRadarZone(i, zone, sizeof(zone));
AlreadyRadar[i] = 1;
SetTimerEx("SetAlreadyRadar", 1000, 0, "i", i);
foreach(new n : Player)
{
if(ShowSpeedCam[n] == 1 && IsACop(n))
{
format(string, sizeof(string), "{39AACC}[CONTROL]: {FFFFFF}All units, we have reports of a speeding %s and %s %s in %s traveling %s",color1,color2,VehicleName[GetVehicleModel(idcar)], zone,GetDirection(GetPlayerFacingAngle(i,Angle));
SendTeamMessage(1, COLOR_ALLDEPT, string);
SendTeamMessage(2, COLOR_ALLDEPT, string);
SendTeamMessage(3, COLOR_ALLDEPT, string);
break;
}
}
}
What i'm trying to figure out how to do is make the statement like this: "[CONTROL]: All units, we have reports of a speeding blue and white Phoenix in Ganton traveling east."
I'm trying to figure out how to set the message to use color1 for the first color, and color2 for the second color. I know not ALL vehicles have 2 colors, I haven't gotten that far yet, but for some odd reason I cannot get this right. I've been fighting this all day.