Need Help
#7

Quote:
Originally Posted by Misiur
Посмотреть сообщение
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, ...}, ...};
I used zee's compiler

Код:
C:\Users\Cengizhan\Desktop\SAMP ILE ILGILI\mod\pawno\include\sscanf2.inc(7) : fatal error 111: user error: Please include <a_npc> or <a_samp> first.


Compilation aborted.

Pawn compiler 3.10.2	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
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: 1 Guest(s)