AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Tag mismatch (https://forums.alliedmods.net/showthread.php?t=139793)

SaM.ThE.MaN 10-05-2010 10:10

Tag mismatch
 
Hello,

So i am trying to compile a simple thing ... and i keep getting this error
PHP Code:

WarningTag mismatch on line 24
Warning
Tag mismatch on line 26
Warning
Tag mismatch on line 26 

PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <engine> 
#include <fakemeta_util>

#define PLUGIN "test"
#define VERSION "1.0"
#define AUTHOR "Sam"

#define PlayerTeam(%1)        g_Team[id] == %1
new Teams:g_Team[33]


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHamHam_Spawn"player""Fw_PlayerSpawn")
    
    
// Add your code here...
}

public 
Fw_PlayerSpawnid )
{
    
g_Team[id] = cs_get_user_team(id)
    
    if( 
PlayerTeam CS_TEAM_T )  || PlayerTeamCS_TEAM_CT ) )
    {
        if( 
is_user_aliveid ) )
        {
            
fm_strip_user_weaponsid )
            
fm_give_item(id"weapon_knife" );
        }
    }



drekes 10-05-2010 10:58

Re: Tag mismatch
 
PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <engine> 
#include <fakemeta_util>

#define PLUGIN "test"
#define VERSION "1.0"
#define AUTHOR "Sam"

#define PlayerTeam(%1)    (g_Team[id] == %1)
new CsTeamsg_Team[33]


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHamHam_Spawn"player""Fw_PlayerSpawn")
    
    
// Add your code here...
}

public 
Fw_PlayerSpawnid )
{
    
g_Team[id] = cs_get_user_team(id)
    
    if( 
PlayerTeam(CS_TEAM_T )  || PlayerTeam(CS_TEAM_CT ) )
    {
        if( 
is_user_aliveid ) )
        {
            
fm_strip_user_weaponsid )
            
fm_give_item(id"weapon_knife" );
        }
    }



SaM.ThE.MaN 10-05-2010 11:17

Re: Tag mismatch
 
THATS ALL!!!!! GRRRR....


All times are GMT -4. The time now is 10:26.

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