#define MAX_PLAYERS, undef.
#1

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

Reply
#2

Why are you trying to redefine this if you've got foreach?

You can also use the other functions to GetPlayerPoolSize...
Reply
#3

@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.
Reply
#4

I'm sure you are facing a script issue, and you don't need to redefine the MAX_PLAYERS.
Reply
#5

And how to detect this error if it really exists?
Reply
#6

@Sew_Sumi


With GetPlayerPoolSize not working, look right TextDraw sites only id 0, and the other players can not create.
Reply
#7

So use Player TextDraws. You don't have to use MAX_PLAYERS.
Reply
#8

@RIDE2DAY


How do I do? How to debug try gamemode?
Reply
#9

@raydx


That I understand, but why this problem occurred?
Reply
#10

Quote:
Originally Posted by Belengher
View Post
@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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)