# error c2062: 'value': undeclared indentifier

**URL:** <https://forums.unrealengine.com/t/error-c2062-value-undeclared-indentifier/117656>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [October 18, 2018, 10:45am UTC](https://forums.unrealengine.com/t/error-c2062-value-undeclared-indentifier/117656 "2018-10-18T10:45:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2043409e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2043409e](https://forums.unrealengine.com/u/anonymous_user_2043409e)\
**Post date:** [October 18, 2018, 10:45am UTC](https://forums.unrealengine.com/t/error-c2062-value-undeclared-indentifier/117656/1 "2018-10-18T10:45:44Z")

</div>

Hello dear community

I’ve been following a tutorial on udemy about “Create Multiplayer Game With C++” and the using version is 4.17.2 since mine is the 4.20  
so when i write the codes after compile it shows me this error:  
error c2062: ‘value’: undeclared indentifier:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/f/2f0984456f8dd47c5beb0a68b72c3d6cf62ef2aa.jpeg) ](http://tinypic.com/images/goodbye.jpg)

[[Album] imgur.com ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/e/48e1fac58e74bdddb16a8bb22dd90a018da278f1.jpeg "imgur.com") ](https://imgur.com/a/SwwudyF)

and i have no idea what should i do?

these are the codes i used:

[SPOILER] #pragma once

#include “CoreMinimal.h”  
#include “GameFramework/Character.h”  
#include “SCharacter.generated.h”

UCLASS()  
class COOPGAME\_API ASCharacter : public ACharacter  
{  
GENERATED\_BODY()

public:  
// Sets default values for this character’s properties  
ASCharacter();

protected:  
// Called when the game starts or when spawned  
virtual void BeginPlay() override;

```
void MoveForward(float Value);

void MoveRight(float value);

```

public:  
// Called every frame  
virtual void Tick(float DeltaTime) override;

```
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

```

};

[/SPOILER]

[SPOILER] // Sets default values  
ASCharacter::ASCharacter()  
{  
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don’t need it.  
PrimaryActorTick.bCanEverTick = true;

}

// Called when the game starts or when spawned  
void ASCharacter::BeginPlay()  
{  
Super::BeginPlay();

}

void ASCharacter::MoveForward(float value)  
{  
AddMovementInput(GetActorForwardVector() \* value);  
}

void ASCharacter::MoveRight(float value)  
{  
AddMovementInput(GetActorRightVector()\* Value);  
}

// Called every frame  
void ASCharacter::Tick(float DeltaTime)  
{  
Super::Tick(DeltaTime);

}

// Called to bind functionality to input  
void ASCharacter::SetupPlayerInputComponent(UInputComponent\* PlayerInputComponent)  
{  
Super::SetupPlayerInputComponent(PlayerInputComponent);

```
PlayerInputComponent-&gt;BindAxis("MoveForward", this, &ASCharacter::MoveForward);
PlayerInputComponent-&gt;BindAxis("MoveRight", this, &ASCharacter::MoveRight);

```

}

[/SPOILER]

---

<div class="post-metadata">

**Author:** ![ExtraLifeMatt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extralifematt/32/918695_2.png) [@ExtraLifeMatt](https://forums.unrealengine.com/u/ExtraLifeMatt)\
**Post date:** [October 18, 2018, 1:51pm UTC](https://forums.unrealengine.com/t/error-c2062-value-undeclared-indentifier/117656/2 "2018-10-18T13:51:29Z")

</div>

> [@](#):
>
> void ASCharacter::MoveRight(float value)  
> {  
> AddMovementInput(GetActorRightVector()\* Value);  
> }

Code is case sensitive. Here you’ve declared a parameter with a lower-case v, but you’re trying to use it with an uppercase V - so the compiler is saying it doesn’t exist.
