[Ajuda] Problemas com tag mismatch
#1

Код:
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?
Reply
#2

Colocou Text: na frente da variбvel?
TextDrawCreate
Reply
#3

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.");
			}
		}
	}
Reply
#4

Problema continua.
Reply
#5

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

Код:
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];
//
Reply
#7

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)