03.10.2018, 17:20
Quote:
No, you still have too many dimensions - why do you need the string in a single-element slot?
|
What's the other option, because as far as I see it, other than packing the string, there's not much else that can be done.
Obviously, if we're talking about 2 strings in the array, I would not even make an array, where I'd rather resort to an if statement or ternary operator, but in a case of 50 or 100 random messages?
EDIT:
Oh, interesting... I have been doing this wrong all this time. Would've thought that if I was doing it wrong, the compiler might've said anything about the array dimensions not matching or any other weird behaviour happening.
pawn Код:
new const func[][] =
{
"Text example",
"Text example 2"
};