Steam - Read Leaderboard Integer : Failed

Sorry to post again. I tried one last thing:

I typed the linked code into my BlankCPPFile that UE4 autogenerated. Here’s the code I typed: (I didn’t type the quotes)

"void ALeaderboardTemplate::LeaderboardWriter(FString LeaderboardName, int32 ScoreValue)

{

IOnlineSubsystem* ion = IOnlineSubsystem::Get();

TSharedPtr<**const** FUniqueNetId> pid = ion->GetIdentityInterface()->GetUniquePlayerID(0);

if (ion) {

    FOnlineLeaderboardWrite WriteObject;

    TArray<FName> NamesToWrite;

    NamesToWrite.Add(TEXT("CoronaWhomp"));


    writeObject.LeaderboardNames - NamesToWrite;

    writeObject.SetIntStat(TEXT"CWScore"), ScoreValue);

    writeObject.SortMethod= ELeaderboardSort::Descending;

    writeObject.UpdateMethod = ELeaderboardUpdateMethod::KeepBest;

    FName SessionName = TEXT("CoronaWhomp");

    FOnlineSessionSettings Settings;

    FOnlineSessionSearchResult chrishartedits;                       

if (pid.IsValid()) {

        ion->GetLeaderboardsInterface()->WriteLeaderboards(SessionName, (*pid), WriteObject);

    }

}"

The only error xcode gives is for the first line: ALeaderboardTemplate is maybe an “Undeclared Identifier”? If anyone who knows C++ can look at that and say, oh yes that snippet will work you just have to add … something … to clear that error; that would be great. It may not be possible, I’m aware of my ignorance.

Thanks!