Are you talking about the check all weapon function I did ? With the | . I was looking for a more efficiiant way to do that . I can use a switch with that many choices on one case ?
Ok what about the fatal error "NO FREE EDICTS" . Any ideas ?
EDIT: why wont this work ?
Code:
stock drop_primary_weapon(id)
{
new clip,bpammo;
new Weapon = get_user_weapon(id,clip,bpammo);
switch(Weapon)
{
case CSW_SCOUT,CSW_XM1014,CSW_MAC10,CSW_AUG,CSW_UMP45,CSW_SG550,CSW_GALIL,CSW_FAMAS,CSW_AWP,
CSW_MP5NAVY,CSW_M249,CSW_M3,CSW_M4A1,CSW_TMP,CSW_G3SG1,CSW_SG552,CSW_AK47,
CSW_P90: client_cmd(id,"+drop") return true;
default: return false;
}
}