11.07.2012, 08:36
What I've seen some people do is improperly initialize arrays of TextDraw IDs, such as this:
The proper way to do it is this:
If you leave the dots out, only the first element will be INVALID_TEXT_DRAW; the rest will be 0.
Edit: Oops, didn't see page 2.
The only way to initialize multi-dimensional arrays is by looping, preferably in On(GameMode/FilterScript)Init.
Edit 3: Like this.
pawn Код:
new
Text:g_SomeTextDraw[MAX_PLAYERS] = {Text:INVALID_TEXT_DRAW}
;
pawn Код:
new
Text:g_SomeTextDraw[MAX_PLAYERS] = {Text:INVALID_TEXT_DRAW, ...} // <- dots
;
Edit: Oops, didn't see page 2.
Quote:
Edit 3: Like this.