Hello,
So i am trying to compile a simple thing ... and i keep getting this error
PHP Code:
Warning: Tag 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(PLUGIN, VERSION, AUTHOR)
RegisterHam( Ham_Spawn, "player", "Fw_PlayerSpawn", 1 )
// Add your code here...
}
public Fw_PlayerSpawn( id )
{
g_Team[id] = cs_get_user_team(id)
if( PlayerTeam ( CS_TEAM_T ) || PlayerTeam( CS_TEAM_CT ) )
{
if( is_user_alive( id ) )
{
fm_strip_user_weapons( id )
fm_give_item(id, "weapon_knife" );
}
}
}
__________________