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
#2

Remove the index. Just
pawn Код:
sizeof(a[])
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Remove the index. Just
pawn Код:
sizeof(a[])
thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)