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(playerid, gRandomSpawns_LosSantos[spawn][0], gRandomSpawns_LosSantos[spawn][1], gRandomSpawns_LosSantos[spawn][2]);
    
SetPlayerFacingAngle(playerid, gRandomSpawns_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(playerid, gRandomSpawns_LosSantos[spawn][0], gRandomSpawns_LosSantos[spawn][1], gRandomSpawns_LosSantos[spawn][2]); 
    
SetPlayerFacingAngle(playerid, gRandomSpawns_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(playerid, 24, 100);
              
GivePlayerWeapon(playerid, 25, 100);
              
GivePlayerWeapon(playerid, 26, 100);
              
CC_BUKIT[playerid]++;
    }
    case 
1: { GivePlayerWeapon(playerid, 27, 100);
              
GivePlayerWeapon(playerid, 28, 100);
              
GivePlayerWeapon(playerid, 29, 100);
              
CC_BUKIT[playerid]++;
    }
    case 
2: { GivePlayerWeapon(playerid, 30, 100);
              
GivePlayerWeapon(playerid, 31, 100);
              
GivePlayerWeapon(playerid, 32, 100);
              
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