Store items
#10

Why 2 tables of items? That sucks.

Use owner and ownertype field.

Example:

#define ITEM_OWNER_TYPE_GROUND 1
#define ITEM_OWNER_TYPE_PLAYER 2
#define ITEM_OWNER_TYPE_VEHICLE 3

Item[itemid][item_owner_type] = ITEM_OWNER_TYPE_PLAYER;
Item[itemid][item_owner] = player DB id;
Reply


Messages In This Thread
Store items - by pollo97 - 27.02.2017, 15:03
Re: Store items - by Unte99 - 27.02.2017, 15:08
Re: Store items - by pollo97 - 27.02.2017, 15:20
Re: Store items - by Unte99 - 27.02.2017, 15:42
Re: Store items - by Vince - 27.02.2017, 15:44
Re: Store items - by Gammix - 27.02.2017, 16:30
Re: Store items - by pollo97 - 27.02.2017, 17:37
Re: Store items - by Vince - 27.02.2017, 17:59
Re: Store items - by pollo97 - 27.02.2017, 18:07
Re: Store items - by raydx - 27.02.2017, 18:10
Re: Store items - by pollo97 - 28.02.2017, 06:59

Forum Jump:


Users browsing this thread: 4 Guest(s)