Store items
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
Hmm, I've always found it rather redundant to store everything in memory. I'd only store things in memory that are accessed very frequently. For anything else I'd go straight to the database. A roundtrip to the database is a bit more expensive but you're not bound by the limits of Pawn.

Specifically this:

should probably be done with a query rather than in code.
I understood.. but if I search on database every time that one open a trade dialog it doesn't lag?

Another question. I save the clothes like any other item. So, I've 150 row of skin with different id in items table.
I've done this, because, first of all, to saving player inventory on database I must have the object id of item table and the account id, and also because the skin are buyable in different stores, so they have different store id.

I think there is a better way to do this.. but currently I don't know..
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: 2 Guest(s)