Problem with Array
#1

[21:54:08] [debug] Run time error 4: "Array index out of bounds"
[21:54:08] [debug] Accessing element at index 2001 past array upper bound 1999
[21:54:08] [debug] AMX backtrace:
[21:54:08] [debug] #0 003f5540 in public OnVehicleStreamIn (0x0000003b, 0x00000000) from CC-RP.amx

What this mean? How I can fix that?

Here is OnVehicleStreamIn function
Код HTML:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
	if (CarInfo[VehicleOwned[vehicleid]][cLock] == 1)
	{
	SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
	}
	else
	{
	SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0);
	return 1;
	}
    if(VehAlarm[vehicleid] == 1)
    {

        {
            SetVehicleParamsForPlayer(vehicleid,forplayerid, 1, 0);
        }
    } else {

        {
            SetVehicleParamsForPlayer(vehicleid,forplayerid, 0, 0);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem with Array - by nemanjasepa - 19.02.2017, 21:07
Re: Problem with Array - by Pottus - 19.02.2017, 21:25
Re: Problem with Array - by nemanjasepa - 19.02.2017, 21:27
Re: Problem with Array - by Mencent - 20.02.2017, 12:08
Re: Problem with Array - by nemanjasepa - 20.02.2017, 12:14
Re: Problem with Array - by Pottus - 20.02.2017, 12:37
Re: Problem with Array - by nemanjasepa - 20.02.2017, 12:42
Re: Problem with Array - by nemanjasepa - 20.02.2017, 13:30
Re: Problem with Array - by Mencent - 20.02.2017, 14:09
Re: Problem with Array - by Pottus - 20.02.2017, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)