usaage big array
#7

I am creating items system, every people have items which they can use (eg. m4,pizza,driving licence etc).

Код:
enum e_Przedmioty
{
    ID, // id of item
    Nazwa[34], // name of item (like "Deasert Eagle")
    Kategoria, // category (weapons,drugs etc)
    Typ, (type - for example weapon id)
    War[100], (description, for example description of id card is "John Smith born 1993")
    Miejsce, // owner id
    InUse // is in use
};
when somebody choose some item from dialog, for example it is m4.

i check witch category is this item, because it is weapons category i know i have to give player weapon (for example for food i restore player's health)

Next i check the type, so i know it is m4 and send message that he is using m4 (name) and set item "InUse".

I have to know id of item to update it in database.
Reply


Messages In This Thread
usaage big array - by Sielly - 28.07.2016, 03:40
Re: usaage big array - by WhiteGhost - 28.07.2016, 03:44
Re: usaage big array - by Dragony92 - 28.07.2016, 03:51
Re: usaage big array - by Sielly - 28.07.2016, 03:54
Re: usaage big array - by Sielly - 28.07.2016, 04:09
Re: usaage big array - by Dragony92 - 28.07.2016, 05:20
Re: usaage big array - by Sielly - 28.07.2016, 05:42
Re: usaage big array - by Vince - 28.07.2016, 08:24
Re: usaage big array - by Rdx - 28.07.2016, 08:54
Re: usaage big array - by Sielly - 28.07.2016, 09:35

Forum Jump:


Users browsing this thread: 2 Guest(s)