SA-MP Forums Archive
DestroyObject Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DestroyObject Problem (/showthread.php?tid=347636)



DestroyObject Problem - Zolder - 02.06.2012

I have this code:

pawn Код:
new VehicleObject[3];
new vehid = GetPlayerVehicleID(playerid);

//command
VehicleObject[1] = CreateObject(18648,0,0,0,0,0,0);
VehicleObject[2] = CreateObject(18648,0,0,0,0,0,0);
AttachObjectToVehicle(VehicleObject[1],vehid,-0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(VehicleObject[2],vehid,0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
How destroy VehicleObject[1] and VehicleObject[2]?

I tried DestroyObject(VehicleObject[1]); but don't work...