[Ajuda] Warning tag mismatch
#1

alguem sabe me dizer o que esta de errado nesse comando esta dando esses avisos

PHP код:
C:\Users\igorm\Desktop\Brasil\gamemodes\BPS.pwn(29811) : warning 213tag mismatch
C
:\Users\igorm\Desktop\Brasil\gamemodes\BPS.pwn(79455) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
Header size
:          37280 bytes
Code size
:          4225280 bytes
Data size
:         14450148 bytes
Stack
/heap size:      16384 bytesestimated maxusageunknowndue to recursion
Total requirements
:18729092 bytes
2 Warnings

codigos

linha 29811
PHP код:
    if(EmGuerraMorro[playerid] && GuerraMorro[gGuerra] >= 1// nessa linha
    
{
          
format(stringsizeof(string), "* %s saiu da Guerra do Morro!",PlayerName(playerid));
          
SendFamilyMessage(1,GetPlayerColor(playerid), string);
          
SendFamilyMessage(2,GetPlayerColor(playerid), string);
          
SendFamilyMessage(5,GetPlayerColor(playerid), string);
          
SendFamilyMessage(6,GetPlayerColor(playerid), string);
          
SendFamilyMessage(14,GetPlayerColor(playerid), string);
          
SendFamilyMessage(17,GetPlayerColor(playerid), string);
          
SendFamilyMessage(18,GetPlayerColor(playerid), string);
          
SendFamilyMessage(19,GetPlayerColor(playerid), string);
          
SendFamilyMessage(21,GetPlayerColor(playerid), string);
          
SendFamilyMessage(26,GetPlayerColor(playerid), string);
          
SendFamilyMessage(33,GetPlayerColor(playerid), string);
          
SendFamilyMessage(34,GetPlayerColor(playerid), string);
          
EmGuerraMorro[playerid] = 0;
    } 
linha 79455
PHP код:
          if(GuerraMorro[gGuerra] >= 1// nessa linha
         
{
            new 
org GetPlayerOrg(playerid);
            if(
org == || org == || org == || org == || org == 14 || org == 17 ||
            
org == 18 || org == 19 || org == 21 || org == 26 || org == 33 || org == 34)
               {
                   if(
gPlayerInGuerra(playerid) && EmGuerraMorro[playerid] == 0)
                   {
                      
format(stringsizeof(string), "* %s entrou na Guerra do Morro!",PlayerName(playerid));
                      
SendFamilyMessage(1,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(2,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(5,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(6,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(14,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(17,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(18,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(19,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(21,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(26,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(33,GetPlayerColor(playerid), string);
                      
SendFamilyMessage(34,GetPlayerColor(playerid), string);
                      
EmGuerraMorro[playerid] = 1;
                  }
            } 
Reply
#2

Provavelmente o tipo de dado, ou da variбvel "GuerraMorro" ou "gGuerra", й diferente do qual o compilador esperaria nestas condicionais.

Poste a declaraзгo de ambas as variбveis.
Reply
#3

Quote:
Originally Posted by NathanT
Посмотреть сообщение
Provavelmente o tipo de dado, ou da variбvel "GuerraMorro" ou "gGuerra", й diferente do qual o compilador esperaria nestas condicionais.

Poste a declaraзгo de ambas as variбveis.
as variaveis

PHP код:
enum GMorro {
    
bool:gGuerra,
    
gDono,
    
gPontosDono,
    
gMortes,
    
gColor,
    
gDinheiro,
    
gTempo,
    
gTimer,
};
new 
GuerraMorro[GMorro];
new 
GZMorro[7];
new 
MorroPontos[MAX_ORGS]; 
й esse os codigo?

nao sei se ajuda mais tem isso tambem
PHP код:
stock OrgMorro(orgid){
    switch(
orgid)
    {
        case 
1,2,5,6,14,17,18,19,21,26,33,34:return 1;
    }
    return 
0;
}
stock gPlayerInGuerra(playerid)
{
    if(!
GuerraMorro[gGuerra])return 0;
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playeridxyz);
    if(
>= 1994.30 && >= -1100.80 && <= 2056.80 && <= -920.80) return 1// morro 1
    
else if(>= 2056.80 && >= -1126.30 && <= 2126.80 && <= -920.80) return 1// morro 2
    
else if(>= 2185.30 && >= -1154.50 && <= 2281.40 && <= -934.40) return 1// morro 3
    
else if(>= 2126.80 && >= -1126.30 && <= 2185.30 && <= -934.40) return 1// morro 4
    
else if(>= 2632.70 && >= -1135.00 && <= 2747.70 && <= -945.00) return 1// morro 5
    
else if(>= 2281.40 && >= -1135.00 && <= 2632.70 && <= -945.00) return 1// morro 6
    
else return 0;

Reply
#4

vc definiu gGuerra como bool o certo entгo seria:

true ou false

Mude a linha do erro para essa de baixo:

PHP код:
if(GuerraMorro[gGuerra] >= true// nessa linha 
Reply
#5

deu certo mano vlww

sabe me dizer pq esta isso?

PHP код:
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
Header size
:          37296 bytes
Code size
:          4225652 bytes
Data size
:         14451660 bytes
Stack
/heap size:      16384 bytesestimated maxusageunknowndue to recursion
Total requirements
:18730992 bytes 
pelo que entendi ultrapassou algum limite
Reply
#6

Isso й normal, relaxa.
Reply
#7

Quote:
Originally Posted by Malandrin
Посмотреть сообщение
Isso й normal, relaxa.
й que outras gm que tenho fica sу essa linha quando compila

PHP код:
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)