SA-MP Forums Archive
warning 213: tag mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch (/showthread.php?tid=428883)



warning 213: tag mismatch - Dmytri - 07.04.2013

Код:
C:\Users\tamara\Desktop\PPC_Server[By Dima]\pawno\include\PPC_Common.inc(258) : warning 213: tag mismatch
C:\Users\tamara\Desktop\PPC_Server[By Dima]\pawno\include\PPC_PlayerCommands.inc(2972) : warning 213: tag mismatch
enum:
Код:
enum TSpeedCamera
{
	Text3D:SpeedText,
	RadarIcon,
	Float:CamX, // Holds the X-coordinate of the camera
	Float:CamY, // Holds the Y-coordinate of the camera
	Float:CamZ, // Holds the Z-coordinate of the camera
	Float:CamAngle, // Holds the Angle of the camera
	CamSpeed, // Holds the maximum speed allowed to pass this camera without being caught
	CamObj1, // Holds the reference to the first camera object
	CamObj2
}
PPC_Common.inc(25:
Код:
ACameras[CamID][RadarIcon] = CreateDynamicMapIcon(x, y, z, 20, 0, -1, -1, 500.0);
PPC_PlayerCommands.inc(2972):
Код:
DestroyDynamicMapIcon(RadarIcon);
HELP ME PLEASE


Re: warning 213: tag mismatch - park4bmx - 07.04.2013

TSpeedCamera[RadarIcon]

RadarIcon is inside a enum


Re: warning 213: tag mismatch - Dmytri - 07.04.2013

what i must doing?


Re: warning 213: tag mismatch - park4bmx - 07.04.2013

pawn Код:
ACameras[CamID][TSpeedCamera[RadarIcon]] = CreateDynamicMapIcon(x, y, z, 20, 0, -1, -1, 500.0);
//Line 258
pawn Код:
DestroyDynamicMapIcon(TSpeedCamera[RadarIcon]);
//2972



Re: warning 213: tag mismatch - Dmytri - 07.04.2013

ehm no he give me error


Re: warning 213: tag mismatch - park4bmx - 07.04.2013

well i dont know if the variable "RadarIcon" is created before the function!
that's what u get for showing only 1 line.
other possibilities are is either ur missing a parameter in CreateDynamicMapIcon or they are not aligned properly.

But it cant be as DestroyDynamicMapIcon only needs 1 parameter. so ur going back to ur enum


Re: warning 213: tag mismatch - RajatPawar - 07.04.2013

pawn Код:
ACameras[CamID][TSpeedCamera][RadarIcon]
Try this.