Out of bounds
#3

It was not declared as a single array. What I meant by that is that you may declared it as 2D array.
pawn Код:
new
    Text: MainMenuTxtdraw[ 10 ][ 10 ]
;
and that gives "error 032: array index out of bounds (variable "MainMenuTxtdraw")" error.

So it should be:
pawn Код:
TextDrawShowForPlayer(playerid, MainMenuTxtdraw[6][5]);
That was just an example of what the error is. Change the values depending on your script.

EDIT: Now you showed the code, it should be:
pawn Код:
new
    Text: MainMenuTxtdraw[ 7 ]
;
Reply


Messages In This Thread
Out of bounds - by Juandawson - 16.10.2013, 10:30
Re: Out of bounds - by xVIP3Rx - 16.10.2013, 10:34
Re: Out of bounds - by Konstantinos - 16.10.2013, 10:35
Re: Out of bounds - by Juandawson - 16.10.2013, 10:36

Forum Jump:


Users browsing this thread: 2 Guest(s)