As far as I can see, that error is impossible with the code inside fw_SetModel. Did you manipulate the error display? Why?
is_valid_ent(item) && CustomItem(item)
The first part prevents the error, the second part causes it.
This is where the problem is:
Code:
public fw_UpdateClientData_Post(id, SendWeapons, CD_Handle) {
if(!is_user_alive(id) || !CustomItem(get_pdata_cbase(id, m_pActiveItem, 5))) return FMRES_IGNORED;
set_cd(CD_Handle, CD_flNextAttack, 999999.0);
return FMRES_HANDLED;
}
->
Code:
public fw_UpdateClientData_Post(id, SendWeapons, CD_Handle) {
if(!is_user_alive(id))
return FMRES_IGNORED;
static sItem;
sItem = get_pdata_cbase(id, m_pActiveItem, 5);
if(!is_valid_ent(sItem) || !CustomItem(sItem))
return FMRES_IGNORED
set_cd(CD_Handle, CD_flNextAttack, 999999.0);
return FMRES_HANDLED;
}
__________________