Error: Argument type Mismatch
#2

Try this:
PHP код:
CreateVehicleEx(vehicleModelFloat:vxSpawnFloat:vySpawnFloat:vzSpawnFloat:vangleSpawnvehicleColor1vehicleColor2vehicleRespawnvehicleOwner[MAX_PLAYER_NAME], vehiclePricebool: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(vehicleModelvxSpawnvySpawnvzSpawnvangleSpawnvehicleColor1vehicleColor2vehicleRespawn);
    
    
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); 
Reply


Messages In This Thread
Error: Argument type Mismatch - by DarkSkull - 02.07.2016, 18:20
Re: Error: Argument type Mismatch - by Dayrion - 02.07.2016, 18:28
Re: Error: Argument type Mismatch - by Arturo226 - 02.07.2016, 18:29
Re: Error: Argument type Mismatch - by DarkSkull - 02.07.2016, 18:35
Re: Error: Argument type Mismatch - by Unrea1 - 02.07.2016, 18:40
Re: Error: Argument type Mismatch - by DarkSkull - 02.07.2016, 18:43
Re: Error: Argument type Mismatch - by Dayrion - 02.07.2016, 19:09
Re: Error: Argument type Mismatch - by DarkSkull - 02.07.2016, 19:14
Re: Error: Argument type Mismatch - by Konstantinos - 02.07.2016, 19:40
Re: Error: Argument type Mismatch - by DarkSkull - 02.07.2016, 20:04

Forum Jump:


Users browsing this thread: 3 Guest(s)