warning 213: tag mismatch
#1

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]);
  } 
Reply
#2

What line is the error on?
Reply
#3

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]); 
  } 
Reply
#4

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

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

fix thank give rep+
Reply
#6

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;

Reply
#7

https://pastebin.com/zwf6eM6G
Reply
#8

thank
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)