As you read the error function code already is decelered in UHT generated code. Accoring to this:
If you want to create override for event in C++ you need to create funcfion called TakeDmg_Implementation(int32 dmg) in cpp
If you want to create event only used in blueprint and triggered from C++ uss BlueprintImplementableEvent insted