howto calculate Sizeof twodimensional arrays?
#1

I know for this new blah[array]; >>>>> sizeof(blah)

But i want to know a function to calculate twodimensionalarrays:
if i do for new blah[playerid][8]; i get an error if i do sizeof(blah[playerid]).

Any Ideas?
Reply
#2

That is a very good question. I honestly dont even know the answer either lol. I've always hated how sizeof never worked with multidimensional arrays.
Reply
#3

pawn Код:
sizeof blah[] // size of the second dimension
Reply
#4

Quote:
Originally Posted by Zeex
pawn Код:
sizeof blah[] // size of the second dimension
Zeex, and don't you know how to get size of variable in enum?
Reply
#5

Unfortunately no I tried several ways but it didn't work
Reply
#6

Quote:
Originally Posted by Zeex
Unfortunately no I tried several ways but it didn't work
It's a pity. I tried too, but I think, there is a way to do this. But no one knows
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)