Who can help me to fix this?
PHP Code:
[AMXX] Run time error 10: native error (native "get_pdata_int")
[AMXX] [0] amx_warmup_pro.sma::fm_get_user_team (line 410)
[AMXX] [1] amx_warmup_pro.sma::fm_get_user_team (line 412)
[AMXX] [2] amx_warmup_pro.sma::FwdPlayerDeath (line 1046)
[FAKEMETA] Invalid entity 0
PHP Code:
stock CsTeams:fm_get_user_team(id, &{CS_Internal_Models,_}:model = CS_DONTCHANGE)
{
model = CS_Internal_Models:get_pdata_int(id, OFFSET_INTERNALMODEL); //This is line 410
return CsTeams:get_pdata_int(id, OFFSET_TEAM); //This is line 412
}
PHP Code:
public FwdPlayerDeath(plr, idattacker)
{
g_is_dead[plr] = true;
if(get_pcvar_num(respawn3d) == 1)
{
set_task(2.0, "TaskCheckAlive", plr);
}
if( wup_on && get_pcvar_num(ganador) == 1 && fm_get_user_team(plr) != fm_get_user_team(idattacker) && is_user_connected(idattacker) ) //This is line 1046
{
g_ganadores[idattacker]++;
}
else if( wup_on && get_pcvar_num(ganador) == 1 && fm_get_user_team(plr) == fm_get_user_team(idattacker) && is_user_connected(idattacker) )
{
g_ganadores[idattacker]--;
}
if(wup_on && get_pcvar_num(mode) == 1 || wup_on && get_pcvar_num(mode) == 2)
{
if (!(7 & FLAG_DEAD) || !(3 & FLAG_CT) || !fm_get_user_defuse(plr))
return
if (CONTAIN_FLAG_OF_INDEX(get_pcvar_num(g_pcvar_allow), DEFUSER))
return
fm_set_user_defuse(plr, 0)
set_pev(plr, pev_body, 0) // backward compatibility
}
}