#define MAX_PLAYERS, undef. -
Belengher - 18.04.2017
Hello.
I have a problem that I see that persists, so I found that if out defines the maximum number of players from GM, no longer appear on some server TextDraw sites ... What to do if this

I think about that sometimes fail server.
Quote:
//------------------------------------------------------------------------------
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 200
#include <a_zones>
#include <crashdetect>
#include <a_mysql>
#include <streamer>
#include <Pawn.CMD>
#include <sscanf2>
#include <foreach>
#include <fly>
#include <firewerkz>
... rest of scripts
|
Re: #define MAX_PLAYERS, undef. -
Sew_Sumi - 18.04.2017
Why are you trying to redefine this if you've got foreach?
You can also use the other functions to
GetPlayerPoolSize...
Re: #define MAX_PLAYERS, undef. -
Belengher - 18.04.2017
@Sew_Sumi
I tried, where TextDraw create sites to put foreach, but when I get on the server, not create but occur in different forms but appear.
Re: #define MAX_PLAYERS, undef. -
Sew_Sumi - 18.04.2017
I'm sure you are facing a script issue, and you don't need to redefine the MAX_PLAYERS.
Re: #define MAX_PLAYERS, undef. -
Belengher - 18.04.2017
And how to detect this error if it really exists?
Re: #define MAX_PLAYERS, undef. -
Belengher - 18.04.2017
@Sew_Sumi
With GetPlayerPoolSize not working, look right TextDraw sites only id 0, and the other players can not create.
Re: #define MAX_PLAYERS, undef. -
raydx - 18.04.2017
So use Player TextDraws. You don't have to use MAX_PLAYERS.
Re: #define MAX_PLAYERS, undef. -
Belengher - 18.04.2017
@RIDE2DAY
How do I do? How to debug try gamemode?
Re: #define MAX_PLAYERS, undef. -
Belengher - 18.04.2017
@raydx
That I understand, but why this problem occurred?
Re: #define MAX_PLAYERS, undef. -
raydx - 19.04.2017
Quote:
Originally Posted by Belengher
@raydx
That I understand, but why this problem occurred?
|
Probably too much global textdraws. Global textdraws limit is 2000. If you are making it with [MAX_PLAYERS], one textdraw is created 200 times.