Array index out of bounds
#5

Quote:
Originally Posted by X337
Посмотреть сообщение
Try to replace MAX_VEHICLES in GrabVID functions, with sizeof(vehicleVariables).
Код:
stock GrabVID(x)
{
	for(new i = 0, j = sizeof(vehicleVariables); i < j; i++)
	{
		if(vehicleVariables[i][vVehicleID] == x) return i;
	}
	return INVALID_VEHICLE_ID;
}
But the thing is, i want to return the vehicleid, not the enum id.
Reply


Messages In This Thread
Array index out of bounds - by danielpalade - 10.12.2016, 00:46
Re: Array index out of bounds - by AroseKhanNiazi - 10.12.2016, 06:56
Re: Array index out of bounds - by X337 - 10.12.2016, 08:34
Re: Array index out of bounds - by danielpalade - 10.12.2016, 12:22
Re: Array index out of bounds - by danielpalade - 10.12.2016, 12:24
Re: Array index out of bounds - by danielpalade - 10.12.2016, 13:04

Forum Jump:


Users browsing this thread: 1 Guest(s)