Array Index problem
#5

Quote:
Originally Posted by Virtual1ty
Посмотреть сообщение
Here is the mistake:
Код:
new PlayerText:TXT_TD_Text[MAX_PLAYERS][ 12 ]; 
new PlayerWeapon[MAX_PLAYERS][13][P_WEAPONS]; 

for (new i = 0; i <= 12; i++) { 
        PlayerTextDrawSetPreviewRot(playerid,TXT_TD_Update[playerid][ i ], 0,0,0, 5.0);
You defined TXT_TD_Text as 12 cells in size, ranging from 0..11 inclusive and you try to access the twelfth slot.
Ah ye lol, didnt even notice. Thanks
Reply


Messages In This Thread
Array Index problem - by TwinkiDaBoss - 27.06.2016, 22:24
Re: Array Index problem - by Stinged - 27.06.2016, 22:37
Re: Array Index problem - by TwinkiDaBoss - 27.06.2016, 23:11
Re: Array Index problem - by Virtual1ty - 27.06.2016, 23:18
Re: Array Index problem - by TwinkiDaBoss - 27.06.2016, 23:20

Forum Jump:


Users browsing this thread: 2 Guest(s)