SA-MP Forums Archive
[Ajuda] Warning 213 - 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] Warning 213 - Tag Mismatch (/showthread.php?tid=565986)



Warning 213 - Tag Mismatch - RStyle2014 - 02.03.2015

Код:
	if(strcmp("/sp", cmdtext, true, 10) == 0)
	{
	    GetPlayerPos(playerid, x, y, z); //Linha 448
		SendClientMessage(playerid, -1, "{ffb400}Posiзгo Salva! Use {ff0000}/LP {ffb400}para retornar а esta posiзгo");
	    return 1;
	}
	if(strcmp("/lp", cmdtext, true, 10) == 0)
	{
		SetPlayerPos(playerid, x, y, z); //Linha 454
		SendClientMessage(playerid, -1, "{ffb400}Bem-vindo de volta para onde vocк estava");
		return 1;
	}
Код:
E:\SA-MP Server Script 0.3z\ISC Recording Server\Painel\gamemodes\DriftMasters.pwn(448) : warning 213: tag mismatch
E:\SA-MP Server Script 0.3z\ISC Recording Server\Painel\gamemodes\DriftMasters.pwn(448) : warning 213: tag mismatch
E:\SA-MP Server Script 0.3z\ISC Recording Server\Painel\gamemodes\DriftMasters.pwn(448) : warning 213: tag mismatch
E:\SA-MP Server Script 0.3z\ISC Recording Server\Painel\gamemodes\DriftMasters.pwn(454) : warning 213: tag mismatch
E:\SA-MP Server Script 0.3z\ISC Recording Server\Painel\gamemodes\DriftMasters.pwn(454) : warning 213: tag mismatch
E:\SA-MP Server Script 0.3z\ISC Recording Server\Painel\gamemodes\DriftMasters.pwn(454) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Sгo os ъnicos warnings que ainda existem no meu cуdigo e seria muito bom que eles desaparecessem.


Re: Warning 213 - Tag Mismatch - MultiKill - 02.03.2015

Esqueceu de colocar o Float na hora de criar as variбveis x, y e z.

pawn Код:
new Float: x, Float: y, Float: z;



Re: Warning 213 - Tag Mismatch - arakuta - 02.03.2015

x, y e z sгo floats?


Re: Warning 213 - Tag Mismatch - RStyle2014 - 02.03.2015

Nгo, eu coloquei os Floats sim, no inнcio do script, se nгo tivesse os floats teria dado erro, nгo warnings.

EDIT: Engraзado que mesmo com esses warnings, eu testei a funзгo e funciona perfeitamente, sem nenhum erro, e isso й bem esquisito.


Re: Warning 213 - Tag Mismatch - ipsLuan - 02.03.2015

Mande os cуdigos entгo das Floats que vocк criou.


Re: Warning 213 - Tag Mismatch - Nenzittow - 02.03.2015

#Edit

Coloque as floats, tal como o Luan disse.

E talvez isso possa ajudar:



Re: Warning 213 - Tag Mismatch - RStyle2014 - 02.03.2015

Код:
#include <a_samp>

//#define's do Nitro Infinito.
#define HOLDING(%0) \ 
	((newkeys & (%0)) == (%0))

#define RELEASED(%0) \
	(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
//#define do Reparar no 'H'.
#define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
	
new float:x, float: y, float: z;

#define DIALOG_CORES 1
	
new GodMode[MAX_PLAYERS];
Essa й a frente completa do programa.

EDIT: Acabei de mudar um detalhe, coloquei o 'f' em letra maiъscula e funcionou, os Warnings desapareceram.

Obrigado!


Re: Warning 213 - Tag Mismatch - arakuta - 02.03.2015

PHP код:
new xyz;
    
GetVehiclePos(vehicleid,x,y,z); 
Код:
hardrpg.pwn(11466) : warning 213: tag mismatch
hardrpg.pwn(11466) : warning 213: tag mismatch
hardrpg.pwn(11466) : warning 213: tag mismatch
Nгo tenha medo de testar seu cуdigo.

PHP код:
new Float:xFloat:yFloat:z;
    
GetVehiclePos(vehicleid,x,y,z); 
O correto й Float. Pawn й case sensitive.


Re: Warning 213 - Tag Mismatch - ipsLuan - 02.03.2015

As letras estгo minusculas, й necessбrio maiъsculas.

PHP код:
new Float:xFloatyFloatz



Re: Warning 213 - Tag Mismatch - RStyle2014 - 02.03.2015

Luan, eu percebi isso, na hora que eu respondi eu mudei sу por curiosidade, й que eu fiquei curioso o porque do Float nгo ficar em azul e achei que estava errado na hora que eu fui fazer o cуdigo, mesmo assim... Obrigado а todos que responderam!

Obrigado pelo Avanзo.
-RStyle.