18.08.2016, 13:26
If you replace it
on
and this
on
everything is working!
PHP код:
#if defined WC_OnPlayerDisconnect
WC_OnPlayerDisconnect(playerid, reason);
#else
PHP код:
#if defined WC_OnPlayerDisconnect
WC_OnPlayerDisconnect(playerid, reason);
#endif
PHP код:
stock WC_CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
{
new id = CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay);
if (id != INVALID_VEHICLE_ID) {
s_VehicleAlive[id] = true;
return id;
}
return INVALID_VEHICLE_ID;
}
PHP код:
stock WC_CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren = 0)
{
new id = CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay, addsiren);
if (id != INVALID_VEHICLE_ID) {
s_VehicleAlive[id] = true;
return id;
}
return INVALID_VEHICLE_ID;
}

