I have a problem that I have been working around for some time but I am no longer able to. I really hope you have a solution.
I am using a 2 dimensional array to store my cell objects. The declaration looks like this “map[mapx][mapy]” where mapx and mapy are read from the map file.
Problem is that I am unable to declare this array globally I get this error.
variable-size type declared outside of any function
I need to reference this array from different functions, not sure how to get around this anymore.
Any Ideas?
Thanks,
I am using a 2 dimensional array to store my cell objects. The declaration looks like this “map[mapx][mapy]” where mapx and mapy are read from the map file.
Problem is that I am unable to declare this array globally I get this error.
variable-size type declared outside of any function
I need to reference this array from different functions, not sure how to get around this anymore.
Any Ideas?
Thanks,