PDA

View Full Version : RemoveBuilding


Trucker[UK]
22/06/2013, 09:53 PM
Hey Guys,

I am having a problem with RemoveBuildingForPlayer, i have scripted it in and it compiles just fine no errors or warnings, but when i go into game they have not been removed.

Can anyone help (I have looked on samp forums)

Thanks

JustBored
22/06/2013, 10:00 PM
Show us the code where you put that function, remember that you have to put it in OnPlayerConnect.

Trucker[UK]
22/06/2013, 10:01 PM
#define FILTERSCRIPT

#include <a_samp>
#include <RemoveBuilding>

#if defined FILTERSCRIPT

public OnPlayerConnect(playerid)
{
RemoveBuilding(playerid, 3627, 2220.78125, -2261.05469, 15.90625, 200.0);
RemoveBuilding(playerid, 3569, 2234.39063, -2244.82812, 14.9375, 200.0);
RemoveBuilding(playerid, 3569, 2219.42188, -2259.52344, 14.88281, 200.0);
RemoveBuilding(playerid, 1226, 2217.85913, -2250.9563, 12.99519, 200.0);
RemoveBuilding(playerid, 1226, 2241.45337, -2241.58252, 14.9827, 200.0);
RemoveBuilding(playerid, 3578, 2235.16406, -2231.85156, 13.25781, 200.0);
RemoveBuilding(playerid, 3569, 2204.63281, -2274.41406, 14.9375, 200.0);
RemoveBuilding(playerid, 3574, 2193.25781, -2286.28906, 14.8125, 200.0);
RemoveBuilding(playerid, 5126, 2197.1875, -2325.53906, 27.53125, 200.0);
RemoveBuilding(playerid, 3627, 2169.11719, -2276.58594, 15.90625, 200.0);
RemoveBuilding(playerid, 3578, 2165.07031, -2288.96875, 13.25781, 200.0);
RemoveBuilding(playerid, 3574, 2165.29688, -2317.5, 14.8125, 200.0);
RemoveBuilding(playerid, 3574, 2179.92188, -2334.85156, 14.8125, 200.0);
RemoveBuilding(playerid, 3578, 2194.47656, -2242.875, 13.25781, 200.0);
RemoveBuilding(playerid, 3574, 2183.17188, -2237.27344, 14.8125, 200.0);
RemoveBuilding(playerid, 3627, 2195.08594, -2216.84375, 15.90625, 200.0);
RemoveBuilding(playerid, 5244, 2198.85156, -2213.92187, 14.88281, 200.0);
RemoveBuilding(playerid, 3574, 2193.0625, -2196.64062, 15.10156, 200.0);
RemoveBuilding(playerid, 3574, 2174.64063, -2215.65625, 15.10156, 200.0);
RemoveBuilding(playerid, 11010, -2113.32031, -186.79687, 40.28125, 200.0);
RemoveBuilding(playerid, 11009, -2128.53906, -142.84375, 39.14063, 200.0);
RemoveBuilding(playerid, 11011, -2144.35156, -132.96094, 38.33594, 200.0);
RemoveBuilding(playerid, 1278, -2137.61719, -110.9375, 48.35156, 200.0);
RemoveBuilding(playerid, 11091, -2133.55469, -132.70312, 36.13281, 200.0);
RemoveBuilding(playerid, 1684, 1427.17041, 1092.40161, 12.44765, 200.0);
RemoveBuilding(playerid, 1338, 1429.87415, 1078.08252, 10.6093, 200.0);
RemoveBuilding(playerid, 1219, 1443.83069, 1099.14819, 10.28924, 200.0);
RemoveBuilding(playerid, 1219, 1449.45618, 1098.74866, 10.28924, 200.0);
RemoveBuilding(playerid, 1219, 1437.11267, 1100.27466, 10.28924, 200.0);
RemoveBuilding(playerid, 8073, 1486.97656, 1104.57031, 13.82031, 200.0);
RemoveBuilding(playerid, 1365, 1495.38281, 1007.78906, 10.96094, 200.0);
RemoveBuilding(playerid, 1331, 1478.7113, 967.01837, 10.95312, 200.0);
RemoveBuilding(playerid, 1331, 1478.73047, 964.3559, 11.04847, 200.0);
RemoveBuilding(playerid, 1420, 1477.8606, 940.49219, 10.19057, 200.0);
RemoveBuilding(playerid, 1358, 1379.03125, 980.76563, 11.07031, 200.0);
RemoveBuilding(playerid, 1365, 1379.14844, 989.30469, 10.96094, 200.0);
RemoveBuilding(playerid, 1365, 1379.14844, 997.10938, 10.96094, 200.0);
RemoveBuilding(playerid, 1420, 1432.28027, 1013.32867, 10.64687, 200.0);
RemoveBuilding(playerid, 1420, 1435.75684, 1013.28058, 10.40981, 200.0);
RemoveBuilding(playerid, 1219, 1444.98645, 1012.51416, 10.28924, 200.0);
RemoveBuilding(playerid, 1219, 1449.7959, 1011.95355, 10.28924, 200.0);
RemoveBuilding(playerid, 1438, 1475.59656, 935.45038, 10.35201, 200.0);
RemoveBuilding(playerid, 1365, 1392.21875, 939.71875, 10.96094, 200.0);
RemoveBuilding(playerid, 1219, 1391.58118, 948.4967, 10.35507, 200.0);
RemoveBuilding(playerid, 1219, 1391.70581, 952.89905, 10.32049, 200.0);
RemoveBuilding(playerid, 1438, 1384.32178, 1100.01196, 10.35201, 200.0);
RemoveBuilding(playerid, 1420, 1384.07666, 1111.18652, 10.34914, 200.0);
RemoveBuilding(playerid, 1420, 1384.21057, 1124.85059, 10.39732, 200.0);
RemoveBuilding(playerid, 1420, 1384.26563, 1138.35059, 10.69015, 200.0);
RemoveBuilding(playerid, 1420, 1383.83423, 1151.53027, 10.20809, 200.0);
RemoveBuilding(playerid, 1338, 1405.76526, 1126.35571, 10.19183, 200.0);
RemoveBuilding(playerid, 1431, 1409.26709, 1125.71899, 10.4063, 200.0);
RemoveBuilding(playerid, 1420, 1427.17786, 1127.06921, 10.24508, 200.0);
RemoveBuilding(playerid, 1331, 1464.75891, 1081.56592, 10.2597, 200.0);
return 1;
}
#endif

horsemeat
22/06/2013, 10:08 PM
wow I did not even know you could do that that is going to be helpful thanks

Trucker[UK]
22/06/2013, 10:10 PM
wow I did not even know you could do that that is going to be helpful thanks

ok, but it does not remove the building for the player

JustBored
22/06/2013, 10:11 PM
Remove the #if defined FILTERSCRIPT why did you put it? it isn't necesary for that callback, for filterscripts you just have to put #define FILTERSCRIPT and thats it.

horsemeat
22/06/2013, 10:14 PM
wait why is it RemoveBuilding and not RemoveBuildingForPlayer

Trucker[UK]
22/06/2013, 10:18 PM
I removed it and went into my server and still did not remove

dannyk0ed
22/06/2013, 10:21 PM
Place those under
OnFilterScriptInit

That should work.

Trucker[UK]
22/06/2013, 10:22 PM
place the Remove Building?

JustBored
22/06/2013, 10:23 PM
Change RemoveBuilding for RemoveBuildingForPlayer that should fix the problem.

horsemeat
22/06/2013, 10:24 PM
Place those under
OnFilterScriptInit

That should work.

I don't think that will work because it uses the playerid parameter I guess mabey you could use

for(new i;i < MAX_PLAYERS;i++)

horsemeat
22/06/2013, 10:26 PM
Show us the code where you put that function, remember that you have to put it in OnPlayerConnect.

will it not work if you put this code some where else example under a command

Trucker[UK]
22/06/2013, 10:27 PM
Change RemoveBuilding for RemoveBuildingForPlayer that should fix the problem.

Nope still did not remove

horsemeat
22/06/2013, 10:29 PM
are you sure it is in the range of the objects you want to remove here I will give it a try

horsemeat
22/06/2013, 10:35 PM
when I do it the object seem to flicker on and off are you experiencing the same thing

Trucker[UK]
22/06/2013, 10:35 PM
nope they r just still a sold object

Vince
22/06/2013, 10:39 PM
Are you even loading the filterscript?

Trucker[UK]
22/06/2013, 10:41 PM
yh it loads

horsemeat
22/06/2013, 10:44 PM
maybe increasing the range will help
RemoveBuildingForPlayer(playerid, 3627, 2220.78125, -2261.05469, 15.90625, 500.0);
RemoveBuildingForPlayer(playerid, 3569, 2234.39063, -2244.82812, 14.9375, 500.0);
RemoveBuildingForPlayer(playerid, 3569, 2219.42188, -2259.52344, 14.88281, 500.0);
RemoveBuildingForPlayer(playerid, 1226, 2217.85913, -2250.9563, 12.99519, 500.0);
RemoveBuildingForPlayer(playerid, 1226, 2241.45337, -2241.58252, 14.9827, 500.0);
RemoveBuildingForPlayer(playerid, 3578, 2235.16406, -2231.85156, 13.25781, 500.0);
RemoveBuildingForPlayer(playerid, 3569, 2204.63281, -2274.41406, 14.9375, 500.0);
RemoveBuildingForPlayer(playerid, 3574, 2193.25781, -2286.28906, 14.8125, 500.0);
RemoveBuildingForPlayer(playerid, 5126, 2197.1875, -2325.53906, 27.53125, 500.0);
RemoveBuildingForPlayer(playerid, 3627, 2169.11719, -2276.58594, 15.90625, 500.0);
RemoveBuildingForPlayer(playerid, 3578, 2165.07031, -2288.96875, 13.25781, 500.0);
RemoveBuildingForPlayer(playerid, 3574, 2165.29688, -2317.5, 14.8125, 500.0);
RemoveBuildingForPlayer(playerid, 3574, 2179.92188, -2334.85156, 14.8125, 500.0);
RemoveBuildingForPlayer(playerid, 3578, 2194.47656, -2242.875, 13.25781, 500.0);
RemoveBuildingForPlayer(playerid, 3574, 2183.17188, -2237.27344, 14.8125, 500.0);
RemoveBuildingForPlayer(playerid, 3627, 2195.08594, -2216.84375, 15.90625, 500.0);
RemoveBuildingForPlayer(playerid, 5244, 2198.85156, -2213.92187, 14.88281, 500.0);
RemoveBuildingForPlayer(playerid, 3574, 2193.0625, -2196.64062, 15.10156, 500.0);
RemoveBuildingForPlayer(playerid, 3574, 2174.64063, -2215.65625, 15.10156, 500.0);
RemoveBuildingForPlayer(playerid, 11010, -2113.32031, -186.79687, 40.28125, 500.0);
RemoveBuildingForPlayer(playerid, 11009, -2128.53906, -142.84375, 39.14063, 500.0);
RemoveBuildingForPlayer(playerid, 11011, -2144.35156, -132.96094, 38.33594, 500.0);
RemoveBuildingForPlayer(playerid, 1278, -2137.61719, -110.9375, 48.35156, 500.0);
RemoveBuildingForPlayer(playerid, 11091, -2133.55469, -132.70312, 36.13281, 500.0);
RemoveBuildingForPlayer(playerid, 1684, 1427.17041, 1092.40161, 12.44765, 500.0);
RemoveBuildingForPlayer(playerid, 1338, 1429.87415, 1078.08252, 10.6093, 500.0);
RemoveBuildingForPlayer(playerid, 1219, 1443.83069, 1099.14819, 10.28924, 500.0);
RemoveBuildingForPlayer(playerid, 1219, 1449.45618, 1098.74866, 10.28924, 500.0);
RemoveBuildingForPlayer(playerid, 1219, 1437.11267, 1100.27466, 10.28924, 500.0);
RemoveBuildingForPlayer(playerid, 8073, 1486.97656, 1104.57031, 13.82031, 500.0);
RemoveBuildingForPlayer(playerid, 1365, 1495.38281, 1007.78906, 10.96094, 500.0);
RemoveBuildingForPlayer(playerid, 1331, 1478.7113, 967.01837, 10.95312, 500.0);
RemoveBuildingForPlayer(playerid, 1331, 1478.73047, 964.3559, 11.04847, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1477.8606, 940.49219, 10.19057, 500.0);
RemoveBuildingForPlayer(playerid, 1358, 1379.03125, 980.76563, 11.07031, 500.0);
RemoveBuildingForPlayer(playerid, 1365, 1379.14844, 989.30469, 10.96094, 500.0);
RemoveBuildingForPlayer(playerid, 1365, 1379.14844, 997.10938, 10.96094, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1432.28027, 1013.32867, 10.64687, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1435.75684, 1013.28058, 10.40981, 500.0);
RemoveBuildingForPlayer(playerid, 1219, 1444.98645, 1012.51416, 10.28924, 500.0);
RemoveBuildingForPlayer(playerid, 1219, 1449.7959, 1011.95355, 10.28924, 500.0);
RemoveBuildingForPlayer(playerid, 1438, 1475.59656, 935.45038, 10.35201, 500.0);
RemoveBuildingForPlayer(playerid, 1365, 1392.21875, 939.71875, 10.96094, 500.0);
RemoveBuildingForPlayer(playerid, 1219, 1391.58118, 948.4967, 10.35507, 500.0);
RemoveBuildingForPlayer(playerid, 1219, 1391.70581, 952.89905, 10.32049, 500.0);
RemoveBuildingForPlayer(playerid, 1438, 1384.32178, 1100.01196, 10.35201, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1384.07666, 1111.18652, 10.34914, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1384.21057, 1124.85059, 10.39732, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1384.26563, 1138.35059, 10.69015, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1383.83423, 1151.53027, 10.20809, 500.0);
RemoveBuildingForPlayer(playerid, 1338, 1405.76526, 1126.35571, 10.19183, 500.0);
RemoveBuildingForPlayer(playerid, 1431, 1409.26709, 1125.71899, 10.4063, 500.0);
RemoveBuildingForPlayer(playerid, 1420, 1427.17786, 1127.06921, 10.24508, 500.0);
RemoveBuildingForPlayer(playerid, 1331, 1464.75891, 1081.56592, 10.2597, 500.0);

Trucker[UK]
22/06/2013, 10:56 PM
I have put the range up to 600.0 and still a solid object

horsemeat
22/06/2013, 11:17 PM
alright how about you try to do this is just made and then go to the sf bridge and see if it is still there


RemoveBuildingForPlayer(playerid, 10820, -1610.6328, 604.2266, 47.9531, 0.25);
RemoveBuildingForPlayer(playerid, 10821, -1505.2578, 715.2422, 64.0391, 0.25);
RemoveBuildingForPlayer(playerid, 10822, -1336.8125, 892.7578, 57.9141, 0.25);
RemoveBuildingForPlayer(playerid, 10823, -1204.1172, 1032.6094, 53.5703, 0.25);
RemoveBuildingForPlayer(playerid, 11248, -1204.1172, 1032.6094, 53.5703, 0.25);
RemoveBuildingForPlayer(playerid, 11249, -1610.6328, 604.2266, 47.9531, 0.25);
RemoveBuildingForPlayer(playerid, 11250, -1505.2578, 715.2422, 64.0391, 0.25);
RemoveBuildingForPlayer(playerid, 11251, -1336.8125, 892.7578, 57.9141, 0.25);
RemoveBuildingForPlayer(playerid, 11252, -1078.7656, 891.0781, 35.6016, 0.25);
RemoveBuildingForPlayer(playerid, 11253, -1385.7188, 670.8047, 42.9766, 0.25);
RemoveBuildingForPlayer(playerid, 11254, -1132.0703, 855.0859, 42.3281, 0.25);
RemoveBuildingForPlayer(playerid, 11256, -1432.6094, 639.4844, 35.6016, 0.25);
RemoveBuildingForPlayer(playerid, 11257, -1368.9844, 682.9609, 31.6953, 0.25);
RemoveBuildingForPlayer(playerid, 11258, -1319.5938, 716.7813, 42.5313, 0.25);
RemoveBuildingForPlayer(playerid, 11259, -1142.0859, 847.7188, 34.5859, 0.25);
RemoveBuildingForPlayer(playerid, 11260, -1198.3984, 808.6328, 42.5313, 0.25);
RemoveBuildingForPlayer(playerid, 11263, -1385.7188, 670.8047, 42.9766, 0.25);
RemoveBuildingForPlayer(playerid, 11264, -1432.6094, 639.4844, 35.6016, 0.25);
RemoveBuildingForPlayer(playerid, 11265, -1319.5938, 716.7813, 42.5313, 0.25);
RemoveBuildingForPlayer(playerid, 11266, -1198.3984, 808.6328, 42.5313, 0.25);
RemoveBuildingForPlayer(playerid, 11267, -1078.7656, 891.0781, 35.6016, 0.25);
RemoveBuildingForPlayer(playerid, 11268, -1132.0703, 855.0859, 42.3281, 0.25);
RemoveBuildingForPlayer(playerid, 11379, -1615.7109, 598.7109, 37.6250, 0.25);
RemoveBuildingForPlayer(playerid, 11380, -1499.9609, 720.6875, 42.0547, 0.25);
RemoveBuildingForPlayer(playerid, 11381, -1349.3281, 879.4219, 43.0313, 0.25);
RemoveBuildingForPlayer(playerid, 11382, -1200.7500, 1035.9844, 38.4141, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1605.6484, 609.1563, 46.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1529.3438, 689.2422, 50.1484, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1463.7031, 758.2344, 51.7969, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1397.7344, 827.5391, 52.7891, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1331.1328, 897.4063, 51.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1264.5703, 967.3438, 50.1875, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1188.8359, 1046.7891, 46.6719, 0.25);
RemoveBuildingForPlayer(playerid, 11468, -915.6563, 1012.4453, 32.1953, 0.25);
RemoveBuildingForPlayer(playerid, 4523, -1592.7813, 622.7813, 42.9688, 0.25);
RemoveBuildingForPlayer(playerid, 4524, -1141.7188, 1098.0547, 39.4766, 0.25);
RemoveBuildingForPlayer(playerid, 4527, -1009.5859, 943.8125, 35.4766, 0.25);

Trucker[UK]
22/06/2013, 11:26 PM
SF Bridge is still there

horsemeat
22/06/2013, 11:46 PM
hum can I see your server log

horsemeat
22/06/2013, 11:58 PM
try putting the code in your game mode and see if that work o going now add me on psn if you have ps3 other wise you will have to wait (snipy67)

Trucker[UK]
23/06/2013, 01:13 AM
My server log

SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team

[00:25:56]
[00:25:56] Server Plugins
[00:25:56] --------------
[00:25:56] Loading plugin: sscanf
[00:25:56]

[00:25:56] ===============================

[00:25:56] sscanf plugin loaded.

[00:25:56] Version: 2.8.1

[00:25:56] (c) 2012 Alex "******" Cole

[00:25:56] ===============================

[00:25:56] Loaded.
[00:25:56] Loading plugin: streamer
[00:25:56]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[00:25:56] Loaded.
[00:25:56] Loaded 2 plugins.

[00:25:56]
[00:25:56] Filterscripts
[00:25:56] ---------------
[00:25:56] Loading filterscript 'gl_realtime.amx'...
[00:25:56] Loading filterscript 'Depos.amx'...
[00:25:56]
--------------------------------------
[00:25:56] (null)
[00:25:56] --------------------------------------

[00:25:56] Loading filterscript 'RemoveBuildings.amx'...
[00:25:56] Loading filterscript 'RB.amx'...
[00:25:56] Loaded 4 filterscripts.

[00:25:58] Debug information
[00:25:58] -------------------------------------
[00:25:58] Last vehicle ID: 195
[00:25:58] Last object ID: 110
[00:25:58] Loaded 868 houses
[00:25:58] Loaded 60 speed-camera's
[00:25:58] -------------------------------------
[00:25:58] Houses that have been fixed: 0
[00:25:58]
----------------------------------
[00:25:58] Real Life Trucking V0.1
[00:25:58] ----------------------------------

[00:25:58] Number of vehicle models: 17

horsemeat
23/06/2013, 01:38 AM
;2581518']My server log

SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team

[00:25:56]
[00:25:56] Server Plugins
[00:25:56] --------------
[00:25:56] Loading plugin: sscanf
[00:25:56]

[00:25:56] ===============================

[00:25:56] sscanf plugin loaded.

[00:25:56] Version: 2.8.1

[00:25:56] (c) 2012 Alex "******" Cole

[00:25:56] ===============================

[00:25:56] Loaded.
[00:25:56] Loading plugin: streamer
[00:25:56]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[00:25:56] Loaded.
[00:25:56] Loaded 2 plugins.

[00:25:56]
[00:25:56] Filterscripts
[00:25:56] ---------------
[00:25:56] Loading filterscript 'gl_realtime.amx'...
[00:25:56] Loading filterscript 'Depos.amx'...
[00:25:56]
--------------------------------------
[00:25:56] (null)
[00:25:56] --------------------------------------

[00:25:56] Loading filterscript 'RemoveBuildings.amx'...
[00:25:56] Loading filterscript 'RB.amx'...
[00:25:56] Loaded 4 filterscripts.

[00:25:58] Debug information
[00:25:58] -------------------------------------
[00:25:58] Last vehicle ID: 195
[00:25:58] Last object ID: 110
[00:25:58] Loaded 868 houses
[00:25:58] Loaded 60 speed-camera's
[00:25:58] -------------------------------------
[00:25:58] Houses that have been fixed: 0
[00:25:58]
----------------------------------
[00:25:58] Real Life Trucking V0.1
[00:25:58] ----------------------------------

[00:25:58] Number of vehicle models: 17

what is the name of your script filter script (every thing looks good) did you try putting it in your gamemode

Trucker[UK]
23/06/2013, 02:05 AM
the name of the filterscript is RemoveBuildings.amx

and yh i have tried still does not work but instead when i load into the server no commands or anything load in with it

OpticKiller
23/06/2013, 03:10 AM
Try to add #include Streamer on your Filterscript

horsemeat
23/06/2013, 12:13 PM
are you sure you have the latest version of samp include your servers compiler and samp.inc and the only other option would be to try this editor I found http://forum.sa-mp.com/showthread.php?t=282801 its recomened according to this page http://wiki.sa-mp.com/wiki/RemoveBuildingForPlayer and try it without the streamer include if you can't just put it in another filter script or game mode

Admigo
23/06/2013, 12:36 PM
I think your files are not updated. Try to redownload the server files at www.sa-mp.com/download
@horsemeat: Tested your code and works fine. Now i cant cross the water:P

CurlyPwn
23/06/2013, 12:44 PM
Place all the removebuilding under ongamemodeint. i still map and it works for me :)

Trucker[UK]
23/06/2013, 12:47 PM
Try to add #include Streamer on your Filterscript

I have added it Into the filterscript still does not remove

Trucker[UK]
23/06/2013, 01:12 PM
Ok, i added it under OnGameModeInit()

But got a error

C:\Users\Brandon\Desktop\RLTrucking - Server\filterscripts\RemoveBuildings.pwn(8) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Line 8

public OnGameModeInit(playerid)

horsemeat
23/06/2013, 04:04 PM
public OnGamemodeInt is not correct it's main()
and you would not put it under that parameter you have to put it under
public OnPlayerConnect(playerid)
here some more info http://wiki.sa-mp.com/wiki/OnPlayerConnect
http://wiki.sa-mp.com/wiki/RemoveBuildingForPlayer

Trucker[UK]
23/06/2013, 04:31 PM
public OnGamemodeInt is not correct it's main()
and you would not put it under that parameter you have to put it under
public OnPlayerConnect(playerid)
here some more info http://wiki.sa-mp.com/wiki/OnPlayerConnect
http://wiki.sa-mp.com/wiki/RemoveBuildingForPlayer

Still not removing

JimmyCh
23/06/2013, 05:04 PM
Put the codes under OnGameModeInIt.

Rep if I helped ;D

Trucker[UK]
23/06/2013, 05:24 PM
Put the codes under OnGameModeInIt.

Rep if I helped ;D

I have already tried that and i get this error

Ok, i added it under OnGameModeInit()

But got a error

C:\Users\Brandon\Desktop\RLTrucking - Server\filterscripts\RemoveBuildings.pwn(8) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Line 8

public OnGameModeInit(playerid)

kristo
23/06/2013, 05:27 PM
;2582462']
public OnGameModeInit(playerid)

Wtf?

http://wiki.sa-mp.com/wiki/OnGameModeInit

RemoveBuildingForPlayer should be under OnPlayerConnect. Also check out this: http://forum.sa-mp.com/showthread.php?t=301264

DobbysGamertag
23/06/2013, 05:27 PM
RemoveBuildingForPlayer is supposed to go under


public OnPlayerConnect(playerid)
{
//code
return 1;
}

horsemeat
23/06/2013, 06:28 PM
ok here how about you try the sf bridge except use the package I provide bellow but do not recompile this will see if it is a compiling error

Tamer
23/06/2013, 06:57 PM
Please Convert your RemoveBuilding to RemoveBuildingForPlayer

Now,compile it and load the filterscript (ingame or console,doesn't matter)

now relog.

Go to the place you mapped the removebuildings

DobbysGamertag
23/06/2013, 07:19 PM
Using my already built GM.


Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


I'll keep you updated.

Edit 1:
http://i.imgur.com/EHLbePv.jpg

From the above file, pasting it under OnPlayerConnect, inside the GM it loads fine. The brige isn't there. You're making a mistake somewhere.

Mafiaday
23/06/2013, 09:25 PM
Try to place it under OnGameModeInit, Real wierd it should work under OnPlayerConnect.

horsemeat
23/06/2013, 09:36 PM
the bridge was my example this is the code he want

Trucker[UK]
23/06/2013, 10:09 PM
It worked but it keeps flickering how can I stop the flickering

DobbysGamertag
23/06/2013, 11:34 PM
Try to place it under OnGameModeInit, Real wierd it should work under OnPlayerConnect.

Will people please learn how a function is called.

There is no playerid parameter in OnGameModeInit() unless you do a loop. But it's rather pointless seeing as there'll be 0 players connected at this point.

OP: Where is the actual removed buildings located?

horsemeat
24/06/2013, 02:15 AM
;2582843']It worked but it keeps flickering how can I stop the flickering

Thanks Great now just change the label distance to 0.25 don't ask me why just do it because the editor does it automatically always like that

Trucker[UK]
24/06/2013, 11:58 AM
Thanks Great now just change the label distance to 0.25 don't ask me why just do it because the editor does it automatically always like that

That is wat the distance is set at and they flicker

horsemeat
24/06/2013, 02:53 PM
;2583506']That is wat the distance is set at and they flicker

what editor did you use or did you do it manually hang on I will fix it for you
ok I did this using editor has to work

RemoveBuildingForPlayer(playerid, 3686, 2169.1172, -2276.5859, 15.9063, 0.25);
RemoveBuildingForPlayer(playerid, 3686, 2195.0859, -2216.8438, 15.9063, 0.25);
RemoveBuildingForPlayer(playerid, 3686, 2220.7813, -2261.0547, 15.9063, 0.25);
RemoveBuildingForPlayer(playerid, 3744, 2179.9219, -2334.8516, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 3744, 2165.2969, -2317.5000, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 3744, 2193.2578, -2286.2891, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 3744, 2183.1719, -2237.2734, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 3744, 2174.6406, -2215.6563, 15.1016, 0.25);
RemoveBuildingForPlayer(playerid, 3744, 2193.0625, -2196.6406, 15.1016, 0.25);
RemoveBuildingForPlayer(playerid, 5304, 2197.1875, -2325.5391, 27.5313, 0.25);
RemoveBuildingForPlayer(playerid, 5305, 2198.8516, -2213.9219, 14.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3747, 2234.3906, -2244.8281, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3747, 2226.9688, -2252.1406, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3747, 2219.4219, -2259.5234, 14.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3747, 2212.0938, -2267.0703, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3747, 2204.6328, -2274.4141, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2179.9219, -2334.8516, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 5126, 2197.1875, -2325.5391, 27.5313, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2165.2969, -2317.5000, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 3578, 2165.0703, -2288.9688, 13.2578, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2193.2578, -2286.2891, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 3627, 2169.1172, -2276.5859, 15.9063, 0.25);
RemoveBuildingForPlayer(playerid, 3569, 2204.6328, -2274.4141, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3569, 2212.0938, -2267.0703, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3627, 2220.7813, -2261.0547, 15.9063, 0.25);
RemoveBuildingForPlayer(playerid, 3569, 2219.4219, -2259.5234, 14.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3578, 2194.4766, -2242.8750, 13.2578, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 2217.2188, -2250.3594, 16.3672, 0.25);
RemoveBuildingForPlayer(playerid, 3569, 2226.9688, -2252.1406, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3569, 2234.3906, -2244.8281, 14.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2183.1719, -2237.2734, 14.8125, 0.25);
RemoveBuildingForPlayer(playerid, 3578, 2235.1641, -2231.8516, 13.2578, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2174.6406, -2215.6563, 15.1016, 0.25);
RemoveBuildingForPlayer(playerid, 3627, 2195.0859, -2216.8438, 15.9063, 0.25);
RemoveBuildingForPlayer(playerid, 5244, 2198.8516, -2213.9219, 14.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3574, 2193.0625, -2196.6406, 15.1016, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 2240.7813, -2240.8984, 16.3672, 0.25);
RemoveBuildingForPlayer(playerid, 11010, -2113.3203, -186.7969, 40.2813, 0.25);
RemoveBuildingForPlayer(playerid, 11048, -2113.3203, -186.7969, 40.2813, 0.25);
RemoveBuildingForPlayer(playerid, 11091, -2133.5547, -132.7031, 36.1328, 0.25);
RemoveBuildingForPlayer(playerid, 11376, -2144.3516, -132.9609, 38.3359, 0.25);
RemoveBuildingForPlayer(playerid, 11011, -2144.3516, -132.9609, 38.3359, 0.25);
RemoveBuildingForPlayer(playerid, 11009, -2128.5391, -142.8438, 39.1406, 0.25);
RemoveBuildingForPlayer(playerid, 1278, -2137.6172, -110.9375, 48.3516, 0.25);
RemoveBuildingForPlayer(playerid, 8119, 1486.9766, 1104.5703, 13.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1365, 1392.2188, 939.7188, 10.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1219, 1392.4531, 953.3828, 10.0625, 0.25);
RemoveBuildingForPlayer(playerid, 1219, 1392.4531, 947.6641, 10.0625, 0.25);
RemoveBuildingForPlayer(playerid, 1358, 1379.0313, 980.7656, 11.0703, 0.25);
RemoveBuildingForPlayer(playerid, 1365, 1379.1484, 989.3047, 10.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1365, 1379.1484, 997.1094, 10.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1432.7188, 1013.7109, 9.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1436.1953, 1013.7109, 9.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1219, 1444.4141, 1012.7656, 10.0313, 0.25);
RemoveBuildingForPlayer(playerid, 1219, 1450.1406, 1012.7656, 10.0313, 0.25);
RemoveBuildingForPlayer(playerid, 1438, 1384.8828, 1101.3750, 9.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1384.0391, 1111.6250, 9.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1338, 1428.6172, 1075.2500, 10.4922, 0.25);
RemoveBuildingForPlayer(playerid, 1684, 1429.2734, 1094.3203, 11.3281, 0.25);
RemoveBuildingForPlayer(playerid, 1219, 1437.6797, 1099.3750, 10.0313, 0.25);
RemoveBuildingForPlayer(playerid, 1219, 1444.4141, 1099.3750, 10.0313, 0.25);
RemoveBuildingForPlayer(playerid, 1219, 1450.1406, 1099.3750, 10.0313, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1384.0391, 1125.2891, 9.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1338, 1405.9688, 1127.0938, 10.4922, 0.25);
RemoveBuildingForPlayer(playerid, 1431, 1409.0469, 1126.0391, 10.3594, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1384.0391, 1138.7891, 9.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1384.0391, 1151.9688, 9.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1438, 1476.0078, 935.3594, 9.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1477.7813, 940.0156, 9.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1331, 1478.1250, 963.5625, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1331, 1478.1250, 967.0703, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1365, 1495.3828, 1007.7891, 10.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1331, 1464.2188, 1081.7422, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 8073, 1486.9766, 1104.5703, 13.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1420, 1426.9219, 1127.5078, 9.8203, 0.25);

Ceez
24/06/2013, 03:30 PM
Just take the code from the filterscript, get on your gamemode,
CTRL+F and search for OnGameModeInit
In there, after !IsPlayerNPC if you have,
Place the full code and hit CTRL+H
in the tab of "Search for" type in RemoveBuilding
In the tab of "Replace with" type in RemoveBuildingForPlayer
Compile the script, restart your server, get IG, go to the location, tadaa, no buildings!