Crash server - function native
#4

Quote:
Originally Posted by Infin1ty
Посмотреть сообщение
Send us your DestroyVehicleEx function. Also~
Код:
DestroyVehicleEx(vehicleid); /////// THIS
You should check if the vehicle is valid before deleting it - incase the function doesn't already do that.

THIS IS:
Код:
public DestroyVehicleEx(vehicleid)
{
    Update3DTextLabelText(LicenseID[vehicleid], COLOR_PD, " ");
    VehicleType[vehicleid] = T_Normal;
	CarBomb[vehicleid] = false;
	CarLock[vehicleid] = false;
	VehicleInfo[vehicleid] = 999;
	Gas[vehicleid] = 100;
	if(CarNeon[vehicleid])
	{
	        if(IsValidDynamicObject(FNeon[vehicleid])) DestroyDynamicObject(FNeon[vehicleid]);
		if(IsValidDynamicObject(SNeon[vehicleid])) DestroyDynamicObject(SNeon[vehicleid]);
	   	DestroyDynamicObject(FNeon[vehicleid]);
		DestroyDynamicObject(SNeon[vehicleid]);
		FNeon[vehicleid] = 0;
		SNeon[vehicleid] = 0;
		CarNeon[vehicleid] = false;
	}
	DestroyVehicle(vehicleid);
	return 1;
}
Reply


Messages In This Thread
Crash server - function native - by Belengher - 17.12.2018, 15:04
Re: Crash server - function native - by Belengher - 17.12.2018, 22:00
Re: Crash server - function native - by Infin1ty - 18.12.2018, 05:52
Re: Crash server - function native - by Belengher - 18.12.2018, 19:29
Re: Crash server - function native - by Belengher - 20.12.2018, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)