14.03.2009, 12:39
It seems I cannot figure out how to use GetMaxPlayers() to be accepted as a constant...
I've tried defining it:
#define max_players GetMaxPlayers()
I've tried the direct methods:
const max_players=GetMaxPlayers();
new const max_players=GetMaxPlayers();
I've even tried combining variations of the two...
Now I know GetMaxPlayers() works fine in "for" statements:
for (new a=0;a<GetMaxPlayers();a++)
I'm just trying to use it when creating new arrays, like:
new noobs[GetMaxPlayers()]
Tell me it's possible and prove to an old man that it's not just that his medication is wearing off...This has been keeping me up at nights....
Thanx to anyone that responds with a workable solution...
I've tried defining it:
#define max_players GetMaxPlayers()
I've tried the direct methods:
const max_players=GetMaxPlayers();
new const max_players=GetMaxPlayers();
I've even tried combining variations of the two...
Now I know GetMaxPlayers() works fine in "for" statements:
for (new a=0;a<GetMaxPlayers();a++)
I'm just trying to use it when creating new arrays, like:
new noobs[GetMaxPlayers()]
Tell me it's possible and prove to an old man that it's not just that his medication is wearing off...This has been keeping me up at nights....
Thanx to anyone that responds with a workable solution...