---
title: "ispacked | open.mp"
description: "Checks if the given string is packed."
canonical: https://omp.itsneufox.com/docs/scripting/functions/ispacked
language: en
---

# ispacked

## Description

Checks if the given string is packed.

| Name | Description |
| --- | --- |
| const string\[\] | The string to check. |

## Returns

**1** if the string is packed, **0** if it's unpacked.

## Examples

```c
// Create a packed string
new string[24 char];

if (ispacked(string))
{
   print("The string is packed.");
}
```

## Related Functions

-   [strpack](https://omp.itsneufox.com/docs/scripting/functions/strpack): Pack a string.
-   [strunpack](https://omp.itsneufox.com/docs/scripting/functions/strunpack): This function can be used to unpack a string.
