DEBUG PROBLEM
#5

PHP код:
        v GetPlayerVehicle(ivehicleid);
        if(
!= -1
I'm gonna assume that 'GetPlayerVehicle' is returning INVALID_VEHICLE_ID, and you then continue to use that in your array 'PlayerVehicleInfo'.

INVALID_VEHICLE_ID (65535) used in an array of MAX_VEHICLES (2000) would give you the error:
Код:
[15:44:44] [debug]  Accessing element at index 65535 past array upper bound 1999
One option is to check whether 'v' is equal to INVALID_VEHICLE_ID before using it in the array.

EDIT: And please don't bump your thread after only a measly 14 minutes... be patient or I'll just dump this issue for someone else to fix.
Reply


Messages In This Thread
DEBUG PROBLEM - by Lloyde - 04.11.2016, 07:53
Re: DEBUG PROBLEM - by Threshold - 04.11.2016, 07:57
Re: DEBUG PROBLEM - by Lloyde - 04.11.2016, 07:59
Re: DEBUG PROBLEM - by Lloyde - 04.11.2016, 08:13
Re: DEBUG PROBLEM - by Threshold - 04.11.2016, 08:22
Re: DEBUG PROBLEM - by Lloyde - 04.11.2016, 08:26
Re: DEBUG PROBLEM - by Threshold - 04.11.2016, 08:29
Re: DEBUG PROBLEM - by Lloyde - 04.11.2016, 08:32
Re: DEBUG PROBLEM - by Threshold - 04.11.2016, 09:42

Forum Jump:


Users browsing this thread: 2 Guest(s)