Tag Missmatch
#1

Code:
if(EventParkour == 1)
			{
			    foreach(new i : Player)
			    {
                    if(InParkour[i] == 1)
                    {
						EventParkour = 0;
						StergeParkour();
					}
				}
Code:
if(InParkour[playerid] == 1)
 	{
 	    if(Yi < 305.0001)
 	    {
        	SCM(playerid,COLOR_LIGHTRED, "Ai cazut,mai incearca!");
        	OnPlayerCommandText(playerid, "/gotoparkour");
		}
  	}
Reply
#2

Quote:
Originally Posted by Y_Less
View Post
There is no way to know where the mismatch in that code is - you haven't told us what line it is on, and you haven't shown us the declarations of any of the variables (so we don't know the tags involved).
Code:
C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(6231) : warning 213: tag mismatch
C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(10648) : warning 213: tag mismatch
C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(32091) : warning 213: tag mismatch
C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(32107) : warning 213: tag mismatch
C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(32111) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          15716 bytes
6231:

Code:
foreach(new i : Player)
			    {
                    if(InParkour[i] == 1) //<<<<<<<<<<
                    {
10648:

Code:
GetPlayerPos(playerid,Xi,Yi,Zi);
	if(InParkour[playerid] == 1) //<<<<<<<
 	{
 	    if(Yi < 305.0001)
32091:

Code:
WaitIntrare(playerid);
			InParkour[playerid] = 1; //<<<<<<<<
			GameTextForPlayer(playerid, "~g~Pentru a iesi,foloseste\n~r~/LEAVEPARKOUR", 2000,1);
32107:

Code:
{
	    if(InParkour[playerid] == 1)
	    {
     		if(GetPlayerInterior(playerid) != 0) return SCM(playerid, COLOR_FADE1, " Din pacate nu poti folosi aceasta comanda intr-un interior.");
32111:

Code:
WaitIntrare(playerid);
			InParkour[playerid] = 0;
			GameTextForPlayer(playerid, "~g~Ai iesit de la ~n~~g~eveniment.", 2000,1);
			SPP(playerid, 1543.4669, -1352.6960, 329.7668);
			SetPlayerInterior(playerid, 0);
Reply
#3

If `InParkour` is declared with bool: tag, then you need to use false/true instead of 0/1
Reply
#4

Quote:
Originally Posted by Calisthenics
View Post
If `InParkour` is declared with bool: tag, then you need to use false/true instead of 0/1
Thanks,+rep for you!
Reply
#5

Just my two cents.

pawn Code:
if(EventParkour == 1) foreach(new i : Player && InParkour[i] == true) EventParkour = 0, StergeParkour();
Reply
#6

@Missmatch
Reply
#7

Mismatch.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)