SA-MP Forums Archive
[Ajuda] 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] tag mismatch (/showthread.php?tid=635902)



tag mismatch - Warlley - 16.06.2017

Galera, to com esse problema й nгo consigo resolver, vocкs podem me ajudar?

PHP код:
(395) : warning 213tag mismatch
(410) : warning 217loose indentation
(912) : warning 213tag mismatch
(922) : warning 213tag mismatch
(923) : warning 213tag mismatch
(924) : warning 213tag mismatch
(938) : warning 213tag mismatch
(939) : warning 213tag mismatch
(1003) : warning 213tag mismatch
(1017) : warning 213tag mismatch
(1024) : warning 213tag mismatch
(1027) : warning 213tag mismatch
(1028) : warning 213tag mismatch
(1033) : warning 213tag mismatch
(1034) : warning 213tag mismatch
(1036) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase 
Todos as linhas desses avisos estгo dando em
PHP код:
Player 
Alguйm sabe resolver?


Re: tag mismatch - IlanZ - 16.06.2017

Como estб variбvel estб declarada?


Re: tag mismatch - Warlley - 16.06.2017

Onde estб dando todos os avisos:

Quote:

Player[playerid][VIP] = false;

Quote:

Player[playerid][VIP] = true;

Quote:

Player[playerid][VIP] = true;

Й outros, estгo dando nesses de cima.


Re: tag mismatch - CZ - 16.06.2017

Manda a vбrivel Player


Espero ter ajudado! ^^ - RazorGuigo - 16.06.2017

na sua declaraзгo de variavel faзa o seguinte:
PHP код:
new bool:Player[MAX_PLAYERS][ALGUMA_COISA]; 
True/False sгo booleanos, e vc tem de utilizar a tipagem correta, que й booleana, assim como int com int, e float com float!

Os tipo de variaveis do pawn sгo:

PHP код:
int    (-2x10^2x10^9"porem vocк nгo precisa declarar este tipo, pq ele й o padrгo do sufixo" (new, static, const, define)
bool:  (True/False) (1/0)
Float: (0.000.0005 "numeros com virgula")
Tag:   (para identificaзгo de objetos e classes"3Dlabel:, TD:, Player3DLabel:" 



Re: tag mismatch - IlanZ - 16.06.2017

PHP код:
enum ALGUMA_COISA
{
    
bool:VIP
}
new 
Player[MAX_PLAYERS][ALGUMA_COISA]; 
Se jб tiver enum so botar a tag bool


Re: tag mismatch - Warlley - 17.06.2017

Valeu galera