Pls Help! Global 2D array declaration

Joined
Oct 30, 2008
Messages
1
Reaction score
0
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top