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:
new const RANKS[][][] = {
{"Civilian", "Recruit", "Recruit"},
{"Civilian", "Private", "Private"},
{"Civilian", "Private First Class", "Private First Class"},
{"Civilian", "Specialist", "Lance Corporal"},
{"Civilian", "Corporal", "Corporal"},
{"Civilian", "Sergeant", "Sergeant"},
{"Civilian", "Staff Sergeant", "Staff Sergeant"},
{"Civilian", "Sergeant First Class", "Gunnery Sergeant"},
{"Civilian", "Master Sergeant", "Master Sergeant"},
{"Civilian", "Sergeant Major", "Sergeant Major"}
}