Quote:
Originally Posted by Dayrion
Try this:
PHP код:
CreateVehicleEx(vehicleModel, Float:vxSpawn, Float:vySpawn, Float:vzSpawn, Float:vangleSpawn, vehicleColor1, vehicleColor2, vehicleRespawn, vehicleOwner[MAX_PLAYER_NAME], vehiclePrice, bool:vehicleBuyable)
{
new vehicleid = GetFreeVehicleSlot();
VehicleInfo[vehicleid][vModel] = vehicleModel;
VehicleInfo[vehicleid][xSpawn] = vxSpawn;
VehicleInfo[vehicleid][ySpawn] = vySpawn;
VehicleInfo[vehicleid][zSpawn] = vzSpawn;
VehicleInfo[vehicleid][angleSpawn] = vangleSpawn;
VehicleInfo[vehicleid][vCol1] = vehicleColor1;
VehicleInfo[vehicleid][vCol2] = vehicleColor2;
VehicleInfo[vehicleid][vRespawn] = vehicleRespawn,
VehicleInfo[vehicleid][vOwner] = vehicleOwner;
VehicleInfo[vehicleid][vPrice] = vehiclePrice;
VehicleInfo[vehicleid][vBuyable] = vehicleBuyable;
VehicleInfo[vehicleid][vID] = CreateVehicle(vehicleModel, vxSpawn, vySpawn, vzSpawn, vangleSpawn, vehicleColor1, vehicleColor2, vehicleRespawn);
vCreated[vehicleid] = true;
return vehicleid;
}
But I'm not sure about
Код:
VehicleInfo[vehicleid][vOwner] = vehicleOwner;
If you have any errors about this, replace by this
PHP код:
format(VehicleInfo[vehicleid][vOwner], MAX_PLAYER_NAME,"%s",vehicleOwner);
|
It didn't work. It gives me Array sizes do not match error.
Quote:
Originally Posted by Arturo226
Where is line 347?
|
It's in the createvehicle command. I have added a comment.