Declaration
ok, store = GetOrderedDataStore(string name, string scope = “global”)
Parameters
Parameter Name | Description |
---|---|
name | Name of a datastore, which is a unique identifier. Data in datastores with the same name is saved in the same data space. |
scope | Region where the datastore is located. Data is stored independently by scope in the datastore. All data keys in the datastore are prefixed with scope by default. |
Return Values
Index | Type | Description |
---|---|---|
1 | int | If the value is 0, the operation is successful. The subsequent field is the obtained ParaOrderedDataStore. |
2 | string or ParaOrderedDataStore | If the operation is successful, the obtained ParaOrderedDataStore is returned. Otherwise, an error message is returned. |
Description
Gets a sortable datastore object.
Data is stored in a key-value format, and the value can only be a number.