28.02.2017, 06:59
Quote:
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; |