19.02.2017, 21:07
[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
[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;
}


