27.05.2015, 21:21
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)
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)