Server bug - OnPlayerConnect
#1

Hey, that would be a problem when the server connects to the players there is no problem, and when the server is already number more than 24 player 0ID of 23ID that time, the players 25 no longer run the public OnPlayerConnect ..and 26, 27,28+ players sites.
I went through everything but I did not find any problems, define MAX_PLAYERS which was alredy set to 60 the number of slots in the server, but does not resolve the issue. Please urgently anyone knows what is causing this error? I hope I have described clearly, if someone can infer something about this please contact us!

#include < a_samp >
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#endif

#define MAX_PLAYERS (60)
Reply
#2

help
Reply
#3

#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS 60

Do this
Reply
#4

not work, Onplayerconnect not called , if 24+ player on the server! why? help please
Reply
#5

up help
Reply
#6

Try this

Quote:

#undef MAX_PLAYERS
#define MAX_PLAYERS 60

instead of writing:

Quote:

#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#endif
#define MAX_PLAYERS (60)

-Regards, Noob Programmer Akbaig.
Reply
#7

Paste your OnPlayerConnect callback.

Also if you're doing anything in OnIncomingConnection callback, also post it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)