Run time error 4: "Array index out of bounds" in Server Console!
#6

The size of the second dimension is 4, that means that 0-3 are the valid indexes and any other will result to a run time error 4.
When it is not an enum-array, you better use sizeof so it will determinate the size itself. Using:
pawn Код:
for(new i = 0; i < sizeof heditinside[]; i++)
will go from 0 to 3. Having [] after the name of the array returns the size of the second dimension, without it returns the first.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)