View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-17-2011 , 11:51   Re: L4D/2 SDK call crashes the server sometimes when client is joining the survivor t
Reply With Quote #2

Code:
#define L4D_MAXCLIENTS_PLUS1 (MaxClients+1)
MaxClients doesn't work this way... essentially you're trying to define a compile-time definition using a runtime variable.

Incidentally, this is always why global arrays have to be defined in terms of MAXPLAYERS instead of MaxClients.

I would heavily suggest just using MaxClients+1 wherever you current use this define.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-17-2011 at 11:53.
Powerlord is offline