Raised This Month: $ Target: $400
 0% 

Cannot find tag mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 02-05-2010 , 18:06   Cannot find tag mismatch
Reply With Quote #1

I cannot find why im getting the errors in line 26 and 47-47.
Both of them use Ownerteam inside the code. Whats the problem?

Its anti-team seems to not be working. Any ideas?

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>

new owner
new Ownerteam

public plugin_init()
{
    
register_plugin("Nade-Slap","1.0","r4nDoMz")
    
register_cvar("nslap_dmg""5")
    
register_touch("grenade""player""touch_nade")
    
register_cvar("amx_nslap""1")
    
RegisterHamHam_Weapon_PrimaryAttack"weapon_hegrenade""Nadethrow"// If the user throws a nade, we get the origin of it in the function
        
RegisterHamHam_Weapon_PrimaryAttack"weapon_flashbang""Nadethrow")
        
RegisterHamHam_Weapon_PrimaryAttack"weapon_smokegrenade""Nadethrow")
}

public 
touch_nade(nadeid)
{

    new 
hitTeam cs_get_user_team(id)
  
    if(
Ownerteam == hitTeam)
    {
        return
    }

    if(!
get_cvar_num("amx_nslap"))
    {
        return
    }

    
entity_set_edict(nadeEV_ENT_aimentid)
    
user_slap(idget_cvar_num("nslap_dmg"), 0)
    
entity_set_int(nadeEV_INT_sequence0)
}



public 
Nadethrow()
{
    
pev(pev_ownerowner)
    
Ownerteam cs_get_user_team(owner)

Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// nade-slap.sma
// C:\Documents and Settings\nick\Desktop\compiler1\nade-slap.sma(26) : warning
213: tag mismatch
// C:\Documents and Settings\nick\Desktop\compiler1\nade-slap.sma(46 -- 47) : wa
rning 213: tag mismatch
// Header size:            676 bytes
// Code size:             1400 bytes
// Data size:              752 bytes
// Stack/heap size:      16384 bytes; estimated max. usage=42 cells (168 bytes)
// Total requirements:   19212 bytes
//
// 2 Warnings.
// Done.
//
// Compilation Time: 0.7 sec
// ----------------------------------------

Press enter to exit ...
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME

Last edited by r4ndomz; 02-05-2010 at 18:15. Reason: spelling error
r4ndomz is offline
Send a message via Skype™ to r4ndomz
 



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 07:26.


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