Enums question
#1

How can I use something else instead of MAX_PLANTS to be unlimited?
Код:
enum PLANTS_INFO
{
	pID,
	pPlanter[MAX_PLAYER_NAME],
	pGrowTime,
	Float:pX,
	Float:pY,
	Float:pZ,
	pMade,
	pObject,
	Text3D:pLabel,
	pPlanted
}
new CropsInfo[MAX_PLANTS][PLANTS_INFO];
Reply
#2

pawn Код:
#define INFINITY (Float:0x7F800000)
#define MAX_PLANTS INFINITY
I guess that wouldn't work. Or would it?
Or if this doesn't, just define max plants as something you'll never reach, 9000000000000, something like that, which will be wasting memory.
Reply
#3

If I increase the MAX_PLANTS to 50000, it will take more memory?
Reply
#4

Yeah.

Really you need something like 50000? Lol.
Reply
#5

I'll be making a ticket system which I want it to be unlimited for everyone...And I can't know how much slots I would need..
Reply
#6

I'm not 100% sure but what about:
pawn Код:
new CropsInfo[][PLANTS_INFO];
Reply
#7

SQL. SQLite will suffice, I suppose.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)