Skip to content

Commit

Permalink
Merge pull request #849 from WALLOFJUSTICE/dev-23-q3-2
Browse files Browse the repository at this point in the history
* half finish new scores json, global stat fix, remove unused stache …
  • Loading branch information
WALLOFJUSTICE authored Oct 24, 2024
2 parents fab9324 + 50062f4 commit 8e64a17
Show file tree
Hide file tree
Showing 5 changed files with 535 additions and 29 deletions.
6 changes: 3 additions & 3 deletions src/playfab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ void PlayfabUser_t::globalStat(int index, int value)

PlayFab::EventsModels::WriteEventsRequest eventRequest;
PlayFab::EventsModels::EventContents eventContent;
eventContent.EventNamespace = "custom.globalstats";
eventContent.Name = "globalstats";
eventContent.Payload[SteamGlobalStatStr[index]] = value;
eventContent.EventNamespace = "custom.global_stats";
eventContent.Name = "global_stats";
eventContent.Payload["stat"] = SteamGlobalStatStr[index].c_str();
eventRequest.Events.push_back(eventContent);
PlayFab::PlayFabEventsAPI::WriteTelemetryEvents(eventRequest, OnEventsWrite, OnCloudScriptFailure);
}
Expand Down
Loading

0 comments on commit 8e64a17

Please sign in to comment.