24.01.2014, 16:43
Can I ask why does when I use new Text:Library[MAX_PLAYERS char] = { Text:INVALID_TEXT_DRAW, ...};
and later
It says
[19:49:16] [debug] Run time error 4: "Array index out of bounds"
[19:49:16] [debug] Accessing element at index 29 past array upper bound 28
Whats so special about that char and where I can read more about it?
Its like Library[MAX_PLAYERS] would have just 29 cells
and later
pawn Код:
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
Library[playerid] = TextDrawCreate(301.000000, 300.000000, "Library~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
...
}
[19:49:16] [debug] Run time error 4: "Array index out of bounds"
[19:49:16] [debug] Accessing element at index 29 past array upper bound 28
Whats so special about that char and where I can read more about it?
Its like Library[MAX_PLAYERS] would have just 29 cells