warning 213: tag mismatch
#1

Quote:

C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(7058 ) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(7101 ) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(8080 ) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(8120 ) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(8159 ) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(1120 : warning 204: symbol is assigned a value that is never used: "stattext"
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(1987 4) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(1988 2) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(1989 0) : warning 213: tag mismatch
C:\Users\toni\Desktop\aaaaa\gamemodes\san.pwn(2553 7) : warning 203: symbol is never used: "Name"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Warnings.

7101:
Код:
		if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ] && vw == HouseInfo[h][hInsideWorld])) return h;
8080:
Код:
		if(IsPlayerInRangeOfPoint(playerid, 50.0, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ] && vw == BusinessInfo[b][bInsideWorld])) return b;
8120:
Код:
		if(IsPlayerInRangeOfPoint(playerid, 50.0, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ] && vw == BusinessInfo[b][bInsideWorld])) return b;
8159:
Код:
		if(IsPlayerInRangeOfPoint(playerid, 50.0, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ] && vw == BusinessInfo[b][bInsideWorld])) return b;
11208:
Код:
	PID, str[128], amount, stattext[32];
19874:
Код:
					if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]) == 0)
19882:
Код:
					else if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate2]) == 0)
19890:
Код:
				else if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate3]) == 0)
Reply
#2

For the first 4 lines:

Need close the "IsPlayerInRangeOfPoint" with ")" after z position (in ur case "HouseInfo[h][hExitZ]"), and remove the last unnecessary ")", follow this example with the other 3 lines.

Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ]) && vw == HouseInfo[h][hInsideWorld]) return h;
for the 11208 line:

U're not using "stattext[32]", just remove it from there

and for the last 3 lines:

If ure using !strcmp, u dont need use "== 0" the "!" param returns 0

ex:
Код:
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]))
sorry for my bad english
Reply
#3

As Thewin said above.
The IsPlayerInRangeOfPoint parameters: playerid, range, x,y,z) && vw == HouseInfo[h][hInsideWorld]) return h;
make sure that stattext is used to be stringed or remove it for useless usage..
Reply
#4

.. sry for double posting lagging as hell..
Reply
#5

Tag mismatches can almost always be traced back to your declaration of the variables. In this case it is probably because you haven't declared 'hExitX', 'hExitY',... As floats but as regular integers. In PAWN to declare a float variable, you just put the float tag in front of it:
PHP код:
new Float:variable
You can also assign a default value to the variable upon declaring it:
PHP код:
new Float:variable 0.0// Just 0 works too if you have nothing but 0 after the decimal point 
Declaring enumerators as floats:
PHP код:
enum E_SOMETHING_DATA {
    
Float:hExitX,
    
Float:hExitY,
    
Float:hExitZ
}; 
Quote:
Originally Posted by Thewin
Посмотреть сообщение
and for the last 3 lines:

If ure using !strcmp, u dont need use "== 0" the "!" param returns 0

ex:
Код:
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]))
sorry for my bad english
That's something very trivial and not really worth pointing out as 'a fix to his problem'. Good tip for OP, though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)