16.02.2011, 13:28
I run a little private server, ergo I am NOT going to have 500 players...Ever...
Rather than have all my player checks go through all 500 non-existent players I like to limit it to 50...
I have the line: maxplayers 50 in my server.cfg
Why can I define max_p (my variable) in a filterscript but NOT in the main game mode?
In the filterscript I use:
#define max_p GetServerVarAsInt("maxplayers") and it works fine...
But when I try that in the main game mode I get a "Pawn Compiler Library has stopped working" error...
Anyone have a clue or can tell me what I'm doing wrong?
8^}>
Rather than have all my player checks go through all 500 non-existent players I like to limit it to 50...
I have the line: maxplayers 50 in my server.cfg
Why can I define max_p (my variable) in a filterscript but NOT in the main game mode?
In the filterscript I use:
#define max_p GetServerVarAsInt("maxplayers") and it works fine...
But when I try that in the main game mode I get a "Pawn Compiler Library has stopped working" error...
Anyone have a clue or can tell me what I'm doing wrong?
8^}>