[Ajuda] Warning 213 - Tag Mismatch
#1

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

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

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

x, y e z sгo floats?
Reply
#4

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

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

#Edit

Coloque as floats, tal como o Luan disse.

E talvez isso possa ajudar:
Reply
#7

Код:
#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!
Reply
#8

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

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

PHP код:
new Float:xFloatyFloatz
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)