Posts: 223
Threads: 68
Joined: Apr 2014
Reputation:
0
Well, we use player variables in our servers, something like: new Variable[MAX_PLAYERS].
I was just wondering, other servers, they could do: new Variable[MAX_GROUPS].
And they can do any names. I tried using new Variable[MAX_GROUPS] but it says MAX_GROUPS is undefined.
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
If you don't have a group system, it will not work.
You can #define MAX_GROUPS (amount) but, like I said, if you don't have a group system, it won't work.
Posts: 223
Threads: 68
Joined: Apr 2014
Reputation:
0
But... this won't work.
#define MAX_GROUPS 100
new Variable[MAX_GROUPS];
Variable[groupid] = 1;
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
Like I said, if you don't have a group system, it will not work.
Posts: 223
Threads: 68
Joined: Apr 2014
Reputation:
0
That is why I am creating a group system.
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
You can obviously define it, and then take a look at other group includes (ignore y_groups - it's too complicated at this level) to see how it is used.