06.08.2017, 10:31
You created an array of shape [1][16] and you are accessing it at "playerid" index - so it fails right after index 0. If you need an array for all players, use MAX_PLAYERS:
Also, your initialization won't work correctly, as 2d/nested initialization is not supported. You have to do it by hand:
Unless you use Zeex's compiler
pawn Код:
new Text:HizGostergesiTD[MAX_PLAYERS][16]
pawn Код:
#define PLAYER_TDS 16
new Text:HizGostergesiTD[MAX_PLAYERS][PLAYER_TDS];
main () {
for (new i = 0; i < sizeof(HizGostergesiTD); ++i) {
for (new j = 0; j != PLAYER_TDS; ++j) {
HizGostergesiTD[i][j] = INVALID_TEXT_DRAW;
}
}
}
pawn Код:
new Text:HizGostergesiTD[MAX_PLAYERS][16] = {{Text:INVALID_TEXT_DRAW, ...}, ...};