View Single Post
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 07-15-2020 , 06:38   Re: how to fix warning 213: tag mismatch
Reply With Quote #3

Quote:
Originally Posted by Shadows Adi View Post
You should use CS_TEAM_* to get team of the players.
Thanks

PHP Code:
// C:\PROGRA~1\COUNTE~4\cstrike\addons\amxmodx\SCRIPT~1\ad_Jailbreak.sma(10176) :
 
warning 211possibly unintended assignment 
Code:
        while( ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_player_deathmatch") ) // Line 10176
        {                 new ent2 = 1                 pev(ent, pev_origin, origin)                 while((ent2 = engfunc(EngFunc_FindEntityInSphere, ent2, origin, radius)))  // find doors near T spawn                 {                         if(!pev_valid(ent2))                                 continue                         pev(ent2, pev_classname, class, charsmax(class))                         if(!equal(class, "func_door")) // if it's not a door, move on to the next iteration                                 continue                         pev(ent2, pev_targetname, name, charsmax(name))                         ent3 = engfunc(EngFunc_FindEntityByString, 0, "target", name) // find button that opens this door                         if(pev_valid(ent3) && (in_array(ent3, found, sizeof(found)) < 1))                         {                                 ExecuteHamB(Ham_Use, ent3, 0, 0, 1, 1.0) // zomg poosh it                                 break // break from current while loop                         }                 }         }

Do you know a way to solve this problem?
__________________
Jailbreak AD 2.0

The greatest civilization of 🇮🇷IRAN🇮🇷
alferd is offline