Raised This Month: $ Target: $400
 0% 

warning 213: tag mismatch (HELP PLZ!)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GPDexter
Junior Member
Join Date: Jun 2014
Old 06-15-2014 , 04:47   warning 213: tag mismatch (HELP PLZ!)
Reply With Quote #1

Hello Guys, i have a problem

When i try to compile my plugin i get this warning:

warning 213: tag mismatch


Here is the line:

PHP Code:
                case(3):
                {
                        if(
attacker == CS_TEAM_CT && get_user_weapon(attacker) == CSW_KNIFE && get_bit(g_PlayerElectroattacker) && cs_get_user_team(victim) != CS_TEAM_T)
                        {
                                
SetHamParamFloat(4damage 25.0)
                                return 
HAM_OVERRIDE
                        
}
                } 
The warning say that's it's the line:

PHP Code:
if(attacker == CS_TEAM_CT && get_user_weapon(attacker) ==  CSW_KNIFE && get_bit(g_PlayerElectroattacker) &&  cs_get_user_team(victim) != CS_TEAM_T
GPDexter is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-15-2014 , 04:56   Re: warning 213: tag mismatch (HELP PLZ!)
Reply With Quote #2

This is not proper
PHP Code:
if(attacker == CS_TEAM_CT && /*other checks*/
You should type it like this
PHP Code:
if(cs_get_user_team(attacker) == CS_TEAM_CT && /*other checks*/

Last edited by klippy; 06-15-2014 at 04:56.
klippy is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 21:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode