25 players, otherwise script freaks out.
#1

I have encountered a serious problem, as soon as server reaches 25 players, registration and login system freaks out.

Any advices?
Reply
#2

Show us login/register code. And make sure MAX_PLAYERS isn't set to 25.
Reply
#3

MAX_PLAYERS is set to 300.

#define SCRIPT_MAXPLAYERS 300 // Max Players.
Reply
#4

Or you can do

pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS 300
Instead of that code...
Reply
#5

Anything else?
Reply
#6

Quote:
Originally Posted by freshOrange
Посмотреть сообщение
Anything else?
Show us the code.
Does everything work fine except login/registration? If nothing is working, you have exceeded array size.

like:
pawn Код:
new array[4];

array[5] ++ ; // this will exceed array size

or

#define MAX_PLAYERS 100
new bool:IsSpawned[MAX_PLAYERS];

playerid = 101;
IsSpawned[playerid] = true; // this will exceed array size
I hope you get the idea
Reply
#7

Everything is completely fine, once server reaches 25th+ player, registration and login isn't able for him.
Reply
#8

Quote:
Originally Posted by freshOrange
Посмотреть сообщение
Everything is completely fine, once server reaches 25th+ player, registration and login isn't able for him.
show us the code, we can't help you without the code.
Reply
#9

http://pastebin.com/s2QXS7su

There's nothing wrong...
Reply
#10

People should seriously consider optimizing their code and stepping away from old methods like dini. Try Y_Ini or DJSON instead.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)