The action command is "TAKE WEAPON" not "TAKEWEAPON"
Usage listed here:
TAKE WEAPON
unitname action ["take weapon",vehiclename,0,0,"weaponname"]
Unitname takes weapon of specified type from vehiclename,
Vehiclename can be a vehicle, crate or body.
Ammo for weapon is also taken.
Unitname can take weaponname from vehiclename even if unitname is on the other side of the island.
Planck