Here’s what happens whenever I try adding a class:

This didn’t happen with the previous class that I added. Looking at the error logs, it seems it’s something related to the code of the character I added before.
Visual studio returns no errors whatsoever, and when I try compiling in UE4 it always says “compiled successfully”.
Also, once this error pops up, the compile button disappears, and I have no way of getting it back until I restart. A bit of help here too please?
Here’s my code:
character.h:
#pragma once
#include "GameFramework/Character.h"
#include "SCharacter.generated.h"
UCLASS()
class SURVIVALGAME_API ASCharacter : public ACharacter
{
GENERATED_BODY()
public:
// Sets default values for this character's properties
ASCharacter();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;
// Movement //
virtual void MoveForward(float Val);
virtual void MoveRight(float Val);
// Jump //
void OnStartJump();
void OnStopJump();
// Health //
UPROPERTY(EditDefaultsOnly, Category = "PlayerCondition", Replicated)
float Health;
UFUNCTION(BlueprintCallable, Category = "PlayerCondition")
float GetMaxHealth() const;
};
character.cpp:
// Fill out your copyright notice in the Description page of Project Settings.
#include "SurvivalGame.h"
#include "SCharacter.h"
// 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();
}
// Called every frame
void ASCharacter::Tick( float DeltaTime )
{
Super::Tick( DeltaTime );
}
// Called to bind functionality to input
void ASCharacter::SetupPlayerInputComponent(class UInputComponent* InputComponent)
{
Super::SetupPlayerInputComponent(InputComponent);
// Looking around //
InputComponent->BindAxis("Turn", this, &APawn::AddControllerYawInput);
InputComponent->BindAxis("LookUp", this, &APawn::AddControllerPitchInput);
// Movement //
InputComponent->BindAxis("MoveForward", this, &ASCharacter::MoveForward);
InputComponent->BindAxis("MoveRight", this, &ASCharacter::MoveRight);
// Jump //
InputComponent->BindAction("Jump", IE_Pressed, this, &ASCharacter::OnStartJump);
InputComponent->BindAction("Jump", IE_Released, this, &ASCharacter::OnStopJump);
}
Finally, here’s the error that UE4 feeds me: [pastie.org/10234607][2]
I believe that’s about it… Thank you so much for your help!