Quote:
Originally Posted by [HLF]Southclaw
Look up enumerators in the language pdf. You'll want two float arrays of 3 cells then a regular array for the string in the enumerator structure. And remove the third array dimension as that's handled by the enumerator.
Enumerators can also make arrays appear 4 dimensional by embedding an array within the enumerator then initialising the enumerator occupying the third dimension; then you can address the "forth" dimension by using the array within the enumerator definition.
pawn Код:
enum E_4D{str1[32], str2[32]} new arr[][][E_4D]; ... arr[0][0][str1] = "hello"; printf("%c", arr[0][0][str1][0]); // prints h
|
Yes, I know that! But I was asking if there was a way of doing it with an array...