SA-MP Forums Archive
Arrays - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Arrays (/showthread.php?tid=538971)



Arrays - ikbenremco - 25.09.2014

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

Can I have string in _phoneData?? It bugs I think


Re: Arrays - WalterWhite - 25.09.2014

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.