Arrays
#1

Can I use this: new PhoneContactData[MAX_PLAYERS][_phoneData][MAX_CONTACTS];

Can I have string in _phoneData?? It bugs I think
Reply
#2

Quote:
Originally Posted by ikbenremco
View Post
Can I use this: new PhoneContactData[MAX_PLAYERS][_phoneData][MAX_CONTACTS];

Can I have string in _phoneData?? It bugs I think
Why do you need a three dimensional array to begin with? Once you've answered that, then can you also let us know if you've defined both '_phoneData' and 'MAX_CONTACTS'? Static arrays require fixed integer values when being declared; so as long as they two pieces of text above are defined as as integer values, then you should be OK.

Let me know what exactly you are trying to achieve as well please, as I get the feeling there's probably a simpler way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)