04.07.2013, 15:44
Okay, so I need a 2D array (well 3D I guess because they're strings) that can store variable length strings (literally from 1 character to thousands).
The problem is, PAWN doesn't support this. The size of the array is set as the longest string, which would be thousands of cells, and the majority of strings will be under 144 chars. Any recommendations? I looked at malloc by ******, but not sure if that's exactly what I'm looking for (for 3D arrays).
pawn Код:
new SomeArray[][][] = {
{
"short",
"loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong"
}
};