Question about multi-dimensional arrays
#1

I've got a basic player item system, and the items are stored like this:

Items[playerid][itemid][various item details spread along these indexes]

but what I want is something like:

Items[playerid][itemid][type]
Items[playerid][itemid][name]
Items[playerid][itemid][...another detail]

So like, the details each have their own array with in array, a sort of 4D array.

Is this possible or is there a better way to do it than I am at the moment?

(I can't store them in a player enum because I'm designing it so items can be dropped and just left on the floor)
Reply


Messages In This Thread
Question about multi-dimensional arrays - by Finn707 - 27.05.2015, 21:21
Re: Question about multi-dimensional arrays - by Konstantinos - 27.05.2015, 21:28
Re: Question about multi-dimensional arrays - by Finn707 - 27.05.2015, 21:34
Re: Question about multi-dimensional arrays - by Charalambos26 - 27.05.2015, 23:46
Re: Question about multi-dimensional arrays - by Konstantinos - 28.05.2015, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)