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