SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 28/02/2017, 06:59 AM   #11
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 83
Reputation: 4
Default Re: Store items

Quote:
Originally Posted by raydx View Post
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;
I've got only a table of items. Watch the screenshot in the previous post
pollo97 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] S-Store Version 2.0 ||Dialog Store System|| SkyFlare Filterscripts 4 31/01/2016 08:05 AM
Help with Items Clad Scripting Help 5 09/03/2014 09:29 PM
items help moustafa0550 Scripting Help 2 20/01/2014 01:47 AM
Close ammunation, pizza store and chicken store Grand Help Archive 3 09/04/2009 08:57 PM


All times are GMT. The time now is 03:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.