GameKit.Score.SetContext
------------------------

Sets context 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.SetContext"; ScoreIdentifier; Value ) 

**MBS**( **"GameKit.Score.SetContext";** /\* Sets context value. \*/  
**$ScoreIdentifier**; /\* The identifier for the score object. \*/   
**$Value**) /\* The new context value.  
This is a 64-bit number you can store with the score. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScoreIdentifier | The identifier for the score object. |  |
| Value | The new context value.   This is a 64-bit number you can store with the score. |  |

### Result

Returns OK or error.

### Description

Sets context value.  
An integer value used by your game.  
  
The context property is stored and returned to your game, but is otherwise ignored by Game Center. It allows your game to associate an arbitrary 64-bit unsigned integer value with the score data reported to Game Center. You decide how this integer value is interpreted by your game. For example, you might use the context property to store flags that provide game-specific details about a player’s score, or you might use the context as a key to other data stored on the device or on your own server. The context is most useful when your game displays a custom leaderboard user interface.  
### 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.Rank](GameKitScoreRank.md) - [GameKit.Score.SetShouldSetDefaultLeaderboard](GameKitScoreSetShouldSetDefaultLeaderboard.md)

[HTML Version](GameKitScoreSetContext.shtml)