GameKit.Score.GetValue
----------------------

Queries score value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.Score.GetValue"; ScoreIdentifier ) 

**MBS**( **"GameKit.Score.GetValue";** /\* Queries score value. \*/  
**$ScoreIdentifier**) /\* The identifier for the score object. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScoreIdentifier | The identifier for the score object. |  |

### Result

Returns value or error.

### Description

Queries score value.  
The score earned by the player.  
You can use any algorithm you want to calculate scores in your game. Your game must set the value property before reporting a score, otherwise an error is returned.  
The value provided by a score object is interpreted by Game Center only when formatted for display. You determine how your scores are formatted when you define the leaderboard in App Store Connect.  
### See also

- [GameKit.Score.GetContext](GameKitScoreGetContext.md)
- [GameKit.Score.SetValue](GameKitScoreSetValue.md)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.Score.GetShouldSetDefaultLeaderboard](GameKitScoreGetShouldSetDefaultLeaderboard.md) - [GameKit.Score.LeaderboardIdentifier](GameKitScoreLeaderboardIdentifier.md)

[HTML Version](GameKitScoreGetValue.shtml)