Well, Hi. Another problem here...
Code:
public Ham_Damage(id, inflictor, attacker, Float:damage, Damage)
{
if(get_user_weapon(attacker) == CSW_KNIFE && zwiadowca[attacker] && cs_get_user_team(attacker) != cs_get_user_team(id))
{
user_kill(id)
set_user_frags(attacker, get_user_frags(attacker)+1)
}
}
Well it works well, but when I hurt myself by falling from high or something like that console says that id is invalid and it deos not hurt me... How to fix it?