SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 29/07/2019, 08:05 PM   #1
DaniielStackZ
Little Clucker
 
Join Date: Feb 2015
Posts: 2
Reputation: 0
Default warning 213: tag mismatch

Code:
C:\Users\Daniel\Documents\BPR COINS\gamemodes\BPR.pwn(51011) : warning 213: tag mismatch
C:\Users\Daniel\Documents\BPR COINS\gamemodes\BPR.pwn(51018) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2016, ITB CompuPhase


4 Warnings.
Code:
	CMD:bonusmissao(playerid, params[])
	{
		if(PlayerInfo[playerid][pAdmin] >= 1340)
		{
			if(BonusMissao == false)
			{
                format(stringZCMD, sizeof(stringZCMD), "[BPR SERVER]Bonus De Missão Ativado.");
                SendClientMessageToAll(COR_AMARELO, stringZCMD);
				BonusMissao = true;
				return 1;
			}
			else if(BonusMissao == true)
			{
   				format(stringZCMD, sizeof(stringZCMD), "[BPR SERVER]Bonus De Missão Desativado.");
                SendClientMessageToAll(COR_AMARELO, stringZCMD);
			    BonusMissao = false;
			    return 1;
   			}
		}
		return 1;
	}
Os Warnings São Na Linhas Vermelhas.
DaniielStackZ is offline   Reply With Quote
Old 29/07/2019, 08:31 PM   #2
Ermanhaut
Gangsta
 
Ermanhaut's Avatar
 
Join Date: Apr 2016
Location: Brazil
Posts: 653
Reputation: 47
Default Re: warning 213: tag mismatch

Code:
new bool:BonusMissao;
Ao invés de
Code:
new BonusMissao;
E não use variáveis com o mesmo nome de funções, o compilador entenderá errado.
Para garantir, troque o nome da função para FuncaoBonusMissao ou algo do tipo.
__________________
try, try and try again
Ermanhaut is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
callbacks.pwn(1213) : warning 213: tag mismatch callbacks.pwn(1217) : warning 213: tag mismatch callbacks.pwn(1221) : wa Dawkin Scripting Help 14 30/07/2018 01:58 PM
Warning 213: Tag mismatch and warning 202: number of arguments does not match definition ConnorG Scripting Help 5 12/01/2018 03:32 AM
warning 213: tag mismatch 26_RUSSS Scripting Help 2 15/02/2014 03:38 AM
warning 213: tag mismatch bybaran Scripting Help 1 05/02/2014 05:43 PM
Warning 213: tag mismatch Tingesport Scripting Help 10 15/02/2013 05:33 PM


All times are GMT. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.