Alternative way to hold high variable ammounts?
#1

Anyone have any idea of how I could hold a large amount of available cells without making the define huge..

Let me show you.

#define MAX_BIZ 1000
#define MAX_BIZITEMS 9999

new BizItemPrice[MAX_BIZ][MAX_BIZITEMS];

Basically, The gamemode compiles huge but I need a large amount of items for businesses since businesses will be holding a custom amount of items per each business, I'm not sure what to do and am a bit confused.

Need some advice.
Reply
#2

If you really need to store that much information (which I doubt) then the gamemode will be big anyway.
Reply
#3

Why does each business need 9999 cells? There is no reason you need that much info for for ONE business.

1000 * 9999 = 9999000 * 4 = 39996000 = ~39mb of ram wasted .
Reply
#4

explain your business system more.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)