UMG C++ compiling and script error messagers

Before I move to pawn possession in Blueprints. There is a error message in UE4, Error “C:\Users\Documents\Unreal Projects\The_Last_Bat\Source\The_Last_Bat\Savers.cpp(6) : error C2059: syntax error : ‘)’”
“Error C:\Users\Documents\Unreal Projects\The_Last_Bat\Source\The_Last_Bat\Savers.cpp(7) : error C2447: ‘{’ : missing function header (old-style formal list?)”
The error massage in Microsoft Visual Studio.
// Savers.cpp
"
// Fill out your copyright notice in the Description page of Project Settings.

#include “The_Last_Bat.h”
#include “Savers.h”

class USavers;

USavers::USaveGame();
{
SaveSlotName = TEXT(“TestSaveSlot”);
UserIndex = 0;
}
"
Line 8, Closing bracket: “Error: expected an identifier”.
Line 9 (You do not need to know where.): “Error: expected a declaration”.
“”" has been used at the start and end off the error massage, there are 2 errors.
May I have given you enough to figure this out.

Hello,

It may due to the ‘;’ between your declaration and your implementation.

USavers::USaveGame(); { SaveSlotName = TEXT(“TestSaveSlot”); UserIndex = 0; }

I did not erase the last set of code from the clipboard. Here it is again.
"
// Fill out your copyright notice in the Description page of Project Settings.

#include “The_Last_Bat.h”
#include “Savers.h”

USavers::USaveGame();
{
SaveSlotName = TEXT(“TestSaveSlot”);
UserIndex = 0;
}
"
The tutorial I was using is “https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Code/index.html”.
Line 6, Closing bracket: “Error: expected an identifier”. Line 7 (You do not need to know where.): “Error: expected a declaration”.

I don’t understand why you copy/paste it again. I will try to be clearer this time.
At this line :

USavers::USaveGame(); { SaveSlotName = TEXT("TestSaveSlot"); UserIndex = 0; }

In fact, I just noticed that there is a second mistake.
Here, you are defining a constructor. The constructor “function” always have the same name that the class. That means, you should have :

USavers::USavers()

instead of :

USavers::USaveGame()

Secondly, what I wrote in my previous post is that you have a ‘;’ (semicolon) between the constructor signature and the body of the constructor (between the “USavers::USaveGame()” and "{ SaveSlotName = "…

USavers::USaveGame()***;*** { SaveSlotName = TEXT("TestSaveSlot"); UserIndex = 0; }

"
// Fill out your copyright notice in the Description page of Project Settings.

#include “The_Last_Bat.h”
#include “Savers.h”

USavers::USavers()
{
SaveSlotName = TEXT(“TestSaveSlot”);
UserIndex = 0;
}
"
Line 6, USavers after “::”: “Error: no instance of overload function “USavers::USavers” maches the specified type”.

"
// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

// See “Module Header File” at https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Code/index.html.
#include “GameFramework/SaveGame.h”
#include “Savers.generated.h”

/**
*
*/
UCLASS()
class THE_LAST_BAT_API USavers : public USaveGame
{
GENERATED_BODY()

public:
// Saves what species the player is.
UPROPERTY(VisibleAnywhere, Category = Basic)
FString SpeciesName;

// Saves what the world name is.
UPROPERTY(VisibleAnywhere, Category = Basic)
	FString SaveSlotName;

// Saves what the user is.
UPROPERTY(VisibleAnywhere, Category = Basic)
	uint32 UserIndex;

USavers();

};
"
So it turns out just as the documentation showed there should be nothing in the brackets on the second last line in the header file. Sorry Begounet for not giving you all the header file :(.