25.03.2008, 14:39
Try
I've got also question about multidimensional array but with enumeration. When I create for example array:
that has enumeration:
then I put numbers in and I print the modelid of first 8 dimensions from array
This is what I need. Everything is proper. But when I change
to
I get printed
As you can see few numbers are printed correctly, but rest not.
And here's my question, why does it happen. And I cannot use number to set number of dimensions, because I'd have to use 5000 which makes my script almost 2MB large.
Code:
enum e_test { bla[50] } new test[10][e_test]; printf("sizeof bla = %i", strlen(test[0][bla]));
Code:
new ObjectInfo[200][oInfo];
Code:
enum oInfo { realid[MAX_PLAYERS], modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, bool:isset[MAX_PLAYERS] }
Code:
[15:57] 615 [15:57] 615 [15:57] 615 [15:57] 3249 [15:57] 3241 [15:57] 744 [15:57] 744 [15:57] 744
Code:
new ObjectInfo[200][oInfo];
Code:
new ObjectInfo[][oInfo];
Code:
[15:58] 0 [15:58] 579 [15:58] 615 [15:58] 0 [15:58] 3241 [15:58] 744 [15:58] 744 [15:58] 744
And here's my question, why does it happen. And I cannot use number to set number of dimensions, because I'd have to use 5000 which makes my script almost 2MB large.