With this function you can find how many key/values pairs the (previously created) ds_map contains.
ds_map_size(id);
参数 | 描述 |
---|---|
id | 要检查的数据结构的id。 |
Real(实数)
if ds_map_size(inventory) > 49
{
full = true;
}
The above code will check the size of the ds_map (ie: number of key/value pairs) and if it is greater than 49 it sets the variable "full" to true.