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.