SA-MP Forums Archive
[Ajuda] Problemas com tag mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problemas com tag mismatch (/showthread.php?tid=627645)



Problemas com tag mismatch - ThuuGLif3 - 30.01.2017

Код:
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(4963) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(4964) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(4965) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(4966) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(4967) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(4968) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(4969) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(7616) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(8956) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(8966) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(16412) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(59168) : warning 213: tag mismatch
C:\Users\----\Desktop\Servidor\gamemodes\GM.pwn(59173) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


13 Warnings.
As linhas sгo:

Код:
	// Parar animaзгo
	PararAnim = TextDrawCreate(610.000000, 400.0000000, "~r~DEL ~w~para parar a animacao");
	TextDrawFont(PararAnim, 2);
	TextDrawSetShadow(PararAnim,0);
    TextDrawSetOutline(PararAnim,1);
    TextDrawBackgroundColor(PararAnim,0x000000FF);
    TextDrawColor(PararAnim,0xFFFFFFFF);
    TextDrawAlignment(PararAnim,3);
	//--
E e essa:

Код:
TextDrawHideForPlayer(playerid, txtAnimHelper);
Qual explicaзгo podem me dar sobre o erro? Conseguem resolver apenas esse code pra mim?


Re: Problemas com tag mismatch - F1N4L - 30.01.2017

Colocou Text: na frente da variбvel?
TextDrawCreate


Re: Problemas com tag mismatch - ThuuGLif3 - 30.01.2017

Resolvido.

Porйm, estou novamente com o mismatch aqui:

Код:
			if(Caido[i] == 0 && pInfo[i][Logado] > 0)
			{
Cуdigo completo:

Код:
	foreach(Player, i)
	{
        new Float:NewHP;
	    GetPlayerHealth(i, NewHP);
		if(Caido[i] == 1)
		{
			LoopingAnim(i,"PED","KO_skid_front",4.1,0,1,1,1,0);
		}
		if(NewHP <= 20)
		{
			if(Caido[i] == 0 && pInfo[i][Logado] > 0)
			{
				Caido[i] = 1;
				SendClientMessage(i, COLOR_FADE2, "Vocк estб muito fraco para se mover.");
				SendClientMessage(i, COLOR_FADE2, "Utilize /desistir para se matar ou espere um mйdico.");
				LoopingAnim(i,"PED","KO_skid_front",4.1,0,1,1,1,0);
			}
		}
		if(NewHP > 20)
		{
			if(Caido[i] == 1 && pInfo[i][Logado] > 0)
			{
				Caido[i] = 0;
				SendClientMessage(i, COLOR_FADE2, "Vocк jб consegue se levantar.");
			}
		}
	}



Re: Problemas com tag mismatch - ThuuGLif3 - 30.01.2017

Problema continua.


Re: Problemas com tag mismatch - F1N4L - 30.01.2017

Mande o enumerador onde se encontra essa constante Logado e Caido.


Re: Problemas com tag mismatch - ThuuGLif3 - 30.01.2017

Код:
enum PlayerInfo
{
	bool:Logado,
};
Caido estб definido assim:

Код:
//Caido e Looping animaзхes
new Caido[MAX_PLAYERS], gPlayerUsingLoopingAnim[MAX_PLAYERS], gPlayerAnimLibsPreloaded[MAX_PLAYERS], animation[MAX_PLAYERS];
//



Re: Problemas com tag mismatch - F1N4L - 30.01.2017

Код:
if(Caido[i] == 0 && pInfo[i][Logado] == true)



Re: Problemas com tag mismatch - TheBob - 30.01.2017

Quote:
Originally Posted by ThuuGLif3
Посмотреть сообщение
Код:
enum PlayerInfo
{
	bool:Logado,
};
Caido estб definido assim:

Код:
//Caido e Looping animaзхes
new Caido[MAX_PLAYERS], gPlayerUsingLoopingAnim[MAX_PLAYERS], gPlayerAnimLibsPreloaded[MAX_PLAYERS], animation[MAX_PLAYERS];
//
Booleans sу trabalha com "true" e "false";
@offtopic;
Obs. se tem warning й porque ta funcionando.