SA-MP Forums Archive
RemoveBuildingForPlayer - 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: RemoveBuildingForPlayer (/showthread.php?tid=416336)



RemoveBuildingForPlayer - Squirrel - 16.02.2013

yeah.. I tried to remove some objects but it doesnt remove them at all....

Code:
public OnPlayerConnect(playerid)
{
	RemoveBuildingForPlayer(playerid, 3366, 276.6563, 2023.7578, 16.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1989.5469, 16.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1955.7656, 16.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 3267, 188.2422, 2081.6484, 22.4453, 0.25);
	RemoveBuildingForPlayer(playerid, 3277, 188.2422, 2081.6484, 22.4063, 0.25);
	RemoveBuildingForPlayer(playerid, 3268, 276.6563, 2023.7578, 16.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1989.5469, 16.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1955.7656, 16.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 3267, 354.4297, 2028.4922, 22.4141, 0.25);
	RemoveBuildingForPlayer(playerid, 3277, 354.4141, 2028.5000, 22.3750, 0.25);
    return 1;
}
EDIT:

These are my includes... maybe it help somehow.
Code:
#include <a_samp>
#include <zcmd>
#include <sscanf2>



Re: RemoveBuildingForPlayer - park4bmx - 16.02.2013

well cant help like this as i dont know where this cords really are without testing it.
which i dont have time for.
so saying that these cords are the exact position of the object then there should be no reason for it to not work, well there is one which is if the objects low-detail is still there


Re: RemoveBuildingForPlayer - Squirrel - 18.02.2013

I will try entering some editor and placing the codes to see what happens.


Re: RemoveBuildingForPlayer - Yves - 18.02.2013

try adding #include <streamer>


Re: RemoveBuildingForPlayer - Squirrel - 18.02.2013

That didnt help too. I resolved it (somehow) by re-adding the entire thing. Thanks anyway guys