no, you cant delcare any varriable with an empty array "[]" without initializing it. Because you will get a compile error. The only reason "[]" exsists it tell the compiler to determine the required length for the string so you dont have to type it in, which it can only do if you have the string you want it to analyze there at the time.
fix:
Code:
new StrName[5] = "TEST" //TEST is only four characters, why make a 255 slotted array?
new StringArray[10][5];
StringArray[1] = "poop" //only index the first array of your multidimensional array
StringArray[2] = StrName //as long as the string is smaller or the same size as you second dimension, it will work.
But i am not sure you can do this in PAWN or not, or if it is safe...'
So do this instead:
Code:
new StrName[5] = "TEST";
new StringArray[10][5]; //[how many strings][length of string]
copy(StringArray[1], 4, "poop");
copy(StringArray[2], 4, StrName);
__________________