Quote:
Originally Posted by Exolent[jNr]
The 2nd one doesn't even compile...
|
I compile it :/ it is unnecessary, but it compiles.
It is not the same, it can work but it is unnecessary if you use just one string.
PHP Code:
new const szColors[ 3 ][ 16 ] = {
"White",
"Green",
"Black"
};
new const szColor1[ 16 ] = { "White" };
new const szColor2[ 16 ] = { "Green" };
new const szColor3[ 16 ] = { "Black" };
Both can work fine, but the first way it is better because you for example could do a loop for use it. And you create just one cost instead of three, in the other way.
__________________