SA-MP Forums Archive
warning 213: tag mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch (/showthread.php?tid=634729)



warning 213: tag mismatch - asri - 25.05.2017

why i get this warning

Quote:

warning 213: tag mismatch

my script

PHP код:
if(crukk11[playerid] == true)
  {
    new 
spawn random(sizeof(gRandomSpawns_LosSantos));
    
SetPlayerPos(playeridgRandomSpawns_LosSantos[spawn][0], gRandomSpawns_LosSantos[spawn][1], gRandomSpawns_LosSantos[spawn][2]);
    
SetPlayerFacingAngle(playeridgRandomSpawns_LosSantos[spawn][3]);
  } 



Re: warning 213: tag mismatch - Kane - 25.05.2017

What line is the error on?


Re: warning 213: tag mismatch - asri - 25.05.2017

PHP код:
if(crukk11[playerid] == true)  <<< the error line
  

    new 
spawn random(sizeof(gRandomSpawns_LosSantos)); 
    
SetPlayerPos(playeridgRandomSpawns_LosSantos[spawn][0], gRandomSpawns_LosSantos[spawn][1], gRandomSpawns_LosSantos[spawn][2]); 
    
SetPlayerFacingAngle(playeridgRandomSpawns_LosSantos[spawn][3]); 
  } 



Re: warning 213: tag mismatch - Cadilab - 25.05.2017

is crukk11 defined as boolean ?
what i mean by that is it

pawn Код:
new bool:crukk11[MAX_PLAYERS];



Re: warning 213: tag mismatch - asri - 25.05.2017

fix thank give rep+


Re: warning 213: tag mismatch - asri - 25.05.2017

i have 1 problem

how to fix indentation

PHP код:
stock power(playerid)
{
    
ResetPlayerWeapons(playerid);
    switch(
CC_BUKIT[playerid])
    {
    case 
0: { GivePlayerWeapon(playerid24100);
              
GivePlayerWeapon(playerid25100);
              
GivePlayerWeapon(playerid26100);
              
CC_BUKIT[playerid]++;
    }
    case 
1: { GivePlayerWeapon(playerid27100);
              
GivePlayerWeapon(playerid28100);
              
GivePlayerWeapon(playerid29100);
              
CC_BUKIT[playerid]++;
    }
    case 
2: { GivePlayerWeapon(playerid30100);
              
GivePlayerWeapon(playerid31100);
              
GivePlayerWeapon(playerid32100);
              
CC_BUKIT[playerid]=0;  
   }
 }
 return 
1;




Re: warning 213: tag mismatch - Burridge - 25.05.2017

https://pastebin.com/zwf6eM6G


Re: warning 213: tag mismatch - asri - 25.05.2017

thank