# Trying to use UserDefinedStruct produces identifier is undefined

**URL:** <https://forums.unrealengine.com/t/trying-to-use-userdefinedstruct-produces-identifier-is-undefined/400100>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 13, 2017, 8:15pm UTC](https://forums.unrealengine.com/t/trying-to-use-userdefinedstruct-produces-identifier-is-undefined/400100 "2017-07-13T20:15:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShadowDogeLeo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShadowDogeLeo](https://forums.unrealengine.com/u/ShadowDogeLeo)\
**Post date:** [July 13, 2017, 8:15pm UTC](https://forums.unrealengine.com/t/trying-to-use-userdefinedstruct-produces-identifier-is-undefined/400100/1 "2017-07-13T20:15:11Z")

</div>

Hey

I’ve made a custom data structure with a parent of UserDefinedStruct but I can’t seem to use it.  
Here’s my header code for the data structure.

```
#pragma once
#include <string>
#include "Engine/UserDefinedStruct.h"
#include "Contradiction.generated.h"

/**
 * 
 */
UCLASS()
class DANGANRONPAMP_API UContradiction : public UUserDefinedStruct
{
	GENERATED_BODY()
	//Text that is displayed on screen
	UPROPERTY()
	std::string DisplayText;
	//Whether this statement has a contradiction
	UPROPERTY()
	bool Contradictory;
	//The truth bullet ID that counters this statement (If contradictory is true)
	UPROPERTY()
	int CounteredBy;
	//The player that says this statement
	UPROPERTY()
	int OwnedByPlayerID;
	//The name of the player that says this statement
	std::string PlayerName
};

```

That’s fine and isn’t producing any errors however when I try and use it as a parameter type in a function in another class it says the identifier isn’t defined.

```
#pragma once
#include "Contradiction.h"
#include "GameFramework/Actor.h"
#include "NonStopDebateMGR.generated.h"

UCLASS()
class DANGANRONPAMP_API ANonStopDebateMGR : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	ANonStopDebateMGR();

     //Other code in the header, all works fine)

	UFUNCTION(BlueprintCallable, Category = "Debate Controls")
	void Start_Debate(Contradiction Arguments[])

```

I need to pass an array contradictions through but I can’t see why its saying “identifier Contradiction is undefined”

Any help on this would be great 😃

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [July 13, 2017, 8:40pm UTC](https://forums.unrealengine.com/t/trying-to-use-userdefinedstruct-produces-identifier-is-undefined/400100/2 "2017-07-13T20:40:51Z")

</div>

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

aside from that use FString instead of std::string
