Need Help
#6

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:
pawn Код:
new Text:HizGostergesiTD[MAX_PLAYERS][16]
Also, your initialization won't work correctly, as 2d/nested initialization is not supported. You have to do it by hand:
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;
        }
    }
}
Unless you use Zeex's compiler
pawn Код:
new Text:HizGostergesiTD[MAX_PLAYERS][16] = {{Text:INVALID_TEXT_DRAW, ...}, ...};
Reply


Messages In This Thread
Need Help - by cengiz6155 - 06.08.2017, 10:03
Re: Need Help - by Misiur - 06.08.2017, 10:04
Re: Need Help - by cengiz6155 - 06.08.2017, 10:07
Re: Need Help - by Misiur - 06.08.2017, 10:08
Re: Need Help - by cengiz6155 - 06.08.2017, 10:16
Re: Need Help - by Misiur - 06.08.2017, 10:31
Re: Need Help - by cengiz6155 - 06.08.2017, 11:07
Re: Need Help - by Misiur - 06.08.2017, 11:24
Re: Need Help - by cengiz6155 - 06.08.2017, 11:40
Re: Need Help - by Misiur - 06.08.2017, 11:46

Forum Jump:


Users browsing this thread: 3 Guest(s)