В чем дело, что неправильного в cs_get_user_team
Код:
public plugin_init() {
register_message( g_msgScreenFade, "msg_ScreenFade" );
}
public msg_ScreenFade( iMsgId, iMsgDest, id ) <initializing, initialized>
{
if(hnsru_war) {
if(get_pcvar_num(hnsru_hnsmode))
{
if( get_msg_arg_int( 4 ) == 255 && get_msg_arg_int( 5 ) == 255 && get_msg_arg_int( 6 ) == 255 )
{
if((cs_get_user_team(id) == CS_TEAM_T) || (cs_get_user_team(id) == CS_TEAM_SPECTATOR))
{
return PLUGIN_HANDLED;
}
}
}
}
return PLUGIN_CONTINUE;
}
log debugЦитата
L 08/10/2015 - 11:29:06: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/10/2015 - 11:29:06: [AMXX] [0] Untitled.sma::msg_ScreenFade (line 2477)
Помогите поправить, спасибо.