Run time error 4: "Array index out of bounds"
#5

Related to vehicles. An array with a size of MAX_VEHICLES (i.e. 2000) has accessible indices 0 through 1999. The value 65535 (or 0xFFFF in hexadecimal) is the definition of INVALID_VEHICLE_ID. AddStaticVehicle and CreateVehicle will return this value if you are over the limit.

Likely cause is the trains. Remove them and try again.
Reply


Messages In This Thread
Run time error 4: "Array index out of bounds" - by Kucin666 - 14.11.2015, 05:35
Re: Run time error 4: "Array index out of bounds" - by Twizted - 14.11.2015, 09:24
Re: Run time error 4: "Array index out of bounds" - by Kucin666 - 14.11.2015, 09:44
Re: Run time error 4: "Array index out of bounds" - by Kucin666 - 14.11.2015, 22:49
Re: Run time error 4: "Array index out of bounds" - by Vince - 14.11.2015, 23:33
Re: Run time error 4: "Array index out of bounds" - by Kucin666 - 14.11.2015, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)