Problem with RemoveBuilding?
#1

Hello, i didnt use the forum for a long time, but im obliged to ask a slightly silly question.

I will explain what happens, yesterday, i was trying to remove 4 streets in Idlewood, but they dont work with 'RemoveBuilding', that is, i used it like this:

Code:
	RemoveBuildingForPlayer(playerid, 5544, 1873.7422, -1682.4766, 34.7969, 0.25);
	RemoveBuildingForPlayer(playerid, 620, 1879.5078, -1741.4844, 10.8047, 0.25);
	RemoveBuildingForPlayer(playerid, 1537, 1837.4375, -1683.9688, 12.3047, 0.25);
	RemoveBuildingForPlayer(playerid, 1533, 1837.4375, -1683.9531, 12.3047, 0.25);
	RemoveBuildingForPlayer(playerid, 1537, 1837.4375, -1686.9844, 12.3125, 0.25);
	RemoveBuildingForPlayer(playerid, 620, 1832.8984, -1670.7656, 9.7188, 0.25);
	RemoveBuildingForPlayer(playerid, 1533, 1837.4375, -1677.9219, 12.2969, 0.25);
	RemoveBuildingForPlayer(playerid, 1537, 1837.4375, -1680.9531, 12.2969, 0.25);
	RemoveBuildingForPlayer(playerid, 1533, 1837.4375, -1680.9375, 12.2969, 0.25);
	RemoveBuildingForPlayer(playerid, 5408, 1873.7422, -1682.4766, 34.7969, 0.25);
	RemoveBuildingForPlayer(playerid, 712, 1929.5781, -1694.4609, 21.3906, 0.25);
	RemoveBuildingForPlayer(playerid, 620, 1931.0391, -1667.0313, 10.8047, 0.25);
	RemoveBuildingForPlayer(playerid, 620, 1879.5078, -1623.1016, 10.8047, 0.25);
But it didn't remove the streets, so i had to use the function like this:

Code:
	RemoveBuildingForPlayer(playerid, -1, 1929.5781, -1736.9063, 21.3906, 28.0);
	RemoveBuildingForPlayer(playerid, -1, 1931.0391, -1726.3281, 10.8047, 28.0);
	RemoveBuildingForPlayer(playerid, -1, 1832.3828, -1694.3125, 9.7188, 28.0);
	RemoveBuildingForPlayer(playerid, -1, 1832.8984, -1670.7656, 9.7188, 28.0);
	RemoveBuildingForPlayer(playerid, -1, 1931.0391, -1702.2891, 10.8047, 28.0);
	RemoveBuildingForPlayer(playerid, -1, 1929.5781, -1694.4609, 21.3906, 28.0);
	RemoveBuildingForPlayer(playerid, -1, 1931.0391, -1667.0313, 10.8047, 28.0);
 	RemoveBuildingForPlayer(playerid, -1, 1931.0391, -1637.8984, 10.8047, 28.0);

	RemoveBuildingForPlayer(playerid, -1, 1832.8359, -1751.5078, 15.5859, 34.0);
	RemoveBuildingForPlayer(playerid, -1, 1952.5156, -1751.3750, 15.5547, 34.0);
Example:


When i change the variable that increases the radius of distance to erase what is within that radius, 2 of the streets were deleted, but I did not succeed with the street above and below, use a radius of 500.0 and one of 1000.0 but even so they were not erased.

Does anyone know why this happens, or has something similar happened to him?
Reply


Messages In This Thread
Problem with RemoveBuilding? - by Mrhind - 12.03.2020, 05:06
Re: Problem with RemoveBuilding? - by Beckett - 12.03.2020, 10:44
Re: Problem with RemoveBuilding? - by Mrhind - 12.03.2020, 15:36
Re: Problem with RemoveBuilding? - by Mrhind - 12.03.2020, 23:39
Re: Problem with RemoveBuilding? - by Kaliber - 13.03.2020, 02:16
Re: Problem with RemoveBuilding? - by Mrhind - 13.03.2020, 07:37
Re: Problem with RemoveBuilding? - by Kaliber - 13.03.2020, 15:14
Re: Problem with RemoveBuilding? - by Mrhind - 13.03.2020, 18:46
Re: Problem with RemoveBuilding? - by Kaliber - 13.03.2020, 20:42
Re: Problem with RemoveBuilding? - by Mrhind - 14.03.2020, 04:04

Forum Jump:


Users browsing this thread: 1 Guest(s)