08.06.2015, 21:10
Yes, the problem is with ELC. It doesn't have "killerid" parameter.
Replace:
with:
Replace:
pawn Код:
public OnVehicleDeath(vehicleid)
{
CheatVehicleInfo[vehicleid][elc_vX]=0;
#if defined INCLUDE_BASE_MODE
return CallLocalFunction("ELC_AC_OnVehicleDeath", "d",vehicleid);
#else
return 1;
#endif
}
/*----------------------------------------------------------------------------*/
#if defined INCLUDE_BASE_MODE
//ALS_SYSTEME --------------------
#if defined _ALS_OnVehicleDeath
#undef OnVehicleDeath
#else
#define _ALS_OnVehicleDeath
#endif
#define OnVehicleDeath ELC_AC_OnVehicleDeath
forward ELC_AC_OnVehicleDeath(vehicleid);
#endif
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
CheatVehicleInfo[vehicleid][elc_vX]=0;
#if defined INCLUDE_BASE_MODE
return CallLocalFunction("ELC_AC_OnVehicleDeath", "dd",vehicleid, killerid);
#else
return 1;
#endif
}
/*----------------------------------------------------------------------------*/
#if defined INCLUDE_BASE_MODE
//ALS_SYSTEME --------------------
#if defined _ALS_OnVehicleDeath
#undef OnVehicleDeath
#else
#define _ALS_OnVehicleDeath
#endif
#define OnVehicleDeath ELC_AC_OnVehicleDeath
forward ELC_AC_OnVehicleDeath(vehicleid, killerid);
#endif