getmaxplayers()
#1

Hello,

i use it in my gamemode, i need to replace MAX_PLAYERS ( so 500) by new maxp = getmaxplayers() ( so 50 in my server)?


new TransportDuty[MAX_PLAYERS];
new TransportValue[MAX_PLAYERS];

or:

new TransportDuty[maxp];
new TransportValue[maxp];


or both, finally it's similar?
Reply
#2

use:
#undef MAX_PLAYERS
#define MAX_PLAYERS 50
Reply
#3

ok, so I need to change. I ask it because it my server crash when my server have 50/50 but if I have 30-40 -45 players, the server dont crash during more week. So I search the reason...
Reply
#4

no because I use MAX_PLAYERS (500) it's just no that. But it's strange if my server is full or was full, some times after it crash. So i search the reason, objects? models? destroyvehicle?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)