AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   warning 213: tag mismatch (HELP PLZ!) (https://forums.alliedmods.net/showthread.php?t=242166)

GPDexter 06-15-2014 04:47

warning 213: tag mismatch (HELP PLZ!)
 
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


klippy 06-15-2014 04:56

Re: warning 213: tag mismatch (HELP PLZ!)
 
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*/



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

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