Error: Argument type Mismatch
#9

Keep it as:
pawn Код:
stock CreateVehicleEx(vehicleModel, Float:vxSpawn, Float:vySpawn, Float:vzSpawn, Float:vangleSpawn, vehicleColor1, vehicleColor2, vehicleRespawn, vehicleOwner[], vehiclePrice, bool:vehicleBuyable)
Never assign directly to copy strings like this:
pawn Код:
VehicleInfo[vehicleid][vOwner]      = vehicleOwner;
that is not the correct way. You can use strcpy:
pawn Код:
#if !defined strcpy
    #define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif
and usage:
pawn Код:
strcpy(destination, source, size);
size is optional but you have to specify it if it enum-array. So that would be:
pawn Код:
strcpy(VehicleInfo[vehicleid][vOwner], vehicleOwner, MAX_PLAYER_NAME);
Last, add a size to "vehicleOwner" in the enum:
pawn Код:
vehicleOwner[MAX_PLAYER_NAME],
Doing the all the above makes it compile.
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)