sizeof second dimension of array?
#1

let's say I have this array
pawn Код:
new a[MAX_PLAYERS][128]
how can I get size of second dimension, so 128?

doing
pawn Код:
sizeof(a[playerid]);
is returning error, however in c++ it works perfectly :X

pawn Код:
char a[500][128];
cout << sizeof(a[1]);
output: 128
Reply


Messages In This Thread
sizeof second dimension of array? - by SEnergy - 29.07.2012, 12:06
Re: sizeof second dimension of array? - by Vince - 29.07.2012, 12:13
Re: sizeof second dimension of array? - by SEnergy - 29.07.2012, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)