SA-MP Forums Archive
Server bug - OnPlayerConnect - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server bug - OnPlayerConnect (/showthread.php?tid=597173)



Server bug - OnPlayerConnect - Slicebook - 27.12.2015

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)


Re: Server bug - OnPlayerConnect - Slicebook - 27.12.2015

help


Re: Server bug - OnPlayerConnect - Tamy - 27.12.2015

#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS 60

Do this


Re: Server bug - OnPlayerConnect - Slicebook - 27.12.2015

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


Re: Server bug - OnPlayerConnect - Slicebook - 28.12.2015

up help


Re: Server bug - OnPlayerConnect - Akbaig - 28.12.2015

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.


Re: Server bug - OnPlayerConnect - Beckett - 28.12.2015

Paste your OnPlayerConnect callback.

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