L 11/08/2011 - 00:46:25: [AMXX] Displaying debug trace (plugin "Jail1.amxx") L 11/08/2011 - 00:46:25: [AMXX] Run time error 10: native error (native "cs_get_user_team") L 11/08/2011 - 00:46:25: [AMXX] [0] Jail1.sma::client_damage (line 2607)
PHP Code:
public client_damage(victim, entid, attacker, Float:damage, damagebits)
{
if (g_rebel[attacker] == true)
{
return PLUGIN_HANDLED;
}
new name_t[32]
get_user_name(attacker, name_t, 31)
if(cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT)
{
g_rebel[attacker] = true
ColorChat(0, RED, "^4[ ^1Extreme^4 ]^4 Prisoner ^1%s^4 is a rebel!", name_t)
}
return PLUGIN_HANDLED;
}
This the line with problem
if(cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT)
what to do how i fix this line