[B]Warning 213: tag mismatch!!!!! HELP[/B]
#1

hey i was working on something and i get this warning and i searched fourms and got no answers can someone please help me
error looks like this
Код:
C:\Users\Owner\Desktop\larp.pwn(81682) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81683) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81684) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81684) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81685) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81685) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81686) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81686) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81687) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81687) : warning 213: tag mismatch
C:\Users\Owner\Desktop\larp.pwn(81688) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Warnings.
the script is and place where warning is
Код:
stock CreatePermObject(Object,Float:x,Float:y,Float:z,Float:Angle)
{
	new Float:car
	for(new h = 184; h < sizeof(Object1); h++)
	{
		if(Object1[h][obp] == 1)
		{
			car = h + 1;
		}
	}
	Object1[car][obp] = 1;
	Object1[car][oid] = Object;
  	Object1[car][obx] = x;
	Object1[car][oby] = y;
	Object1[car][obz] = z-0.7;
	Object1[car][orx] = Angle;
	Object1[car][obj] = CreateDynamicObject(Object, x, y, z-0.9, 0, 0, Angle);
	return 0;
	
}
and where the enum thing is
Код:
enum oinfo
{
	oid,
	obx,
	oby,
	obz,
	orx,
	obj,
	obp,
};
new Object1[10][oinfo];
Please help and tell me if you need more imformation
Reply
#2

oh i left something out please tell me if this helps too
Quote:

public LoadObjects()
{
new arrCoords[6][64];
new strFromFile2[256];
new File: file = fopen("LARP/object.txt", io_read);
if (file)
{
new idx
while (idx < sizeof(Object1))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
Object1[idx][oid] = strval(arrCoords[0]);
Object1[idx][obx] = strval(arrCoords[1]);
Object1[idx][oby] = strval(arrCoords[2]);
Object1[idx][obz] = strval(arrCoords[3]);
Object1[idx][orx] = strval(arrCoords[4]);
Object1[idx][obp] = strval(arrCoords[5]);
Object1[idx][obj] = CreateDynamicObject(Object1[idx][oid],Object1[idx][obx],Object1[idx][oby],Object1[idx][obz],Object1[idx][orx],0,0);
idx++;
}
printf("[SCRIPT]: Loaded %d Objects", idx);
fclose(file);
}
return 1;
}

Reply
#3

tag mismatch mean that you have two things that maybe can have conflict...
Try search maybe you have TWO stock CreatePermObject or maybe new Float:car is already used/defined
Reply
#4

I think the variable 'car' should not be a float. So firstly:

pawn Код:
new Float:car;
Should be:
pawn Код:
new car;
Then objx, objy, objz and orx need to be floats. So you need to change this:
pawn Код:
new Object1[10][oinfo];
into:
pawn Код:
new Float:Object1[10][oinfo];
I don't know if it's still possible to make 'car' an integer then, but just try it. If not, make 'car' a Float again and then it should work (i hope).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)