# Rpc Problems

**URL:** <https://forums.unrealengine.com/t/rpc-problems/458677>\
**Category:** Multiplayer & Networking\
**Tags:** error, replicate, rpc, unreal-engine, question, CPP\
**Created:** [November 21, 2019, 4:05pm UTC](https://forums.unrealengine.com/t/rpc-problems/458677 "2019-11-21T16:05:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Park0201](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Park0201](https://forums.unrealengine.com/u/Park0201)\
**Post date:** [November 21, 2019, 4:05pm UTC](https://forums.unrealengine.com/t/rpc-problems/458677/1 "2019-11-21T16:05:07Z")

</div>

Structs.h

```
USTRUCT(BlueprintType)
struct FTestData
{
	GENERATED_BODY()

	UPROPERTY()
		int32 code;
};

```

Levelscript.h

```
UFUNCTION(Reliable, Server, WithValidation)
		void TestReplicateSrver(FTestData _data);
		void TestReplicateServer_Implementation(FTestData _data);
		bool TestReplicateServer_Validate(FTestData _data);

```

I want to do rpc communication with a custom struct.  
Unrecognized type ‘FTestData’-type must be a UCLASS, USTRUCT or UENUM Error.  
I don’t know what the problem is.

---

<div class="post-metadata">

**Author:** ![Koraemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Koraemon](https://forums.unrealengine.com/u/Koraemon)\
**Post date:** [November 22, 2019, 5:10am UTC](https://forums.unrealengine.com/t/rpc-problems/458677/2 "2019-11-22T05:10:47Z")

</div>

Did you include your struct file in your levelscript file? Seems to work fine for me.
