Get size of a certain dimension of an array
Is there a way in pawn to get the size of one of the dimensions of an array.
I want to get how long the 2nd dimension is, so if I want to add a new rank/level I wouldn't have to have the RANKS[][MAXRANKS][] variable in there that I would have to edit each time.It would just edit the maxranks for me. Obviously if it is not possible it is one little number I would have to change to add a new rank so no big deal. PHP Code:
|
Re: Get size of a certain dimension of an array
Using your exemple :
sizeof RANKS will return 10 sizeof RANKS[] will return 3 |
Re: Get size of a certain dimension of an array
I love how helpful this place is, and how fast people respond to questions.
Thanks for the help |
| All times are GMT -4. The time now is 09:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.