SA-MP Forums Archive
Objects [HELP] - 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: Objects [HELP] (/showthread.php?tid=535922)



Objects [HELP] - Supermaxultraswag - 06.09.2014

In whole san-fierro city I use 3000 CreateDynamicObject and 2000 RemoveBuildingForPlayer . Running the server is fine, but when I connect to the server, it shows me "don't send" table and kick from server... And yes, i use streamer


Re: Objects [HELP] - Malicious - 06.09.2014

Can you take a screenshot ? and maybe the code of where your CreateDynamicObjects are?


Re: Objects [HELP] - Supermaxultraswag - 06.09.2014

stock Sfcity()
{
CreateDynamicObject(874, -2105.23, 45.72, 34.89, 0.00, 0.00, 10.00);
CreateDynamicObject(874, -2114.16, 34.32, 34.89, 0.00, 0.00, 10.00);
CreateDynamicObject(874, -2131.16, 23.03, 34.89, 0.00, 0.00, 10.00);
CreateDynamicObject(874, -2134.24, 38.56, 34.89, 0.00, 0.00, 10.00);
CreateDynamicObject(874, -2162.48, 30.15, 34.89, 0.00, 0.00, 10.00);
CreateDynamicObject(3594, -2088.85, -0.46, 34.58, 0.00, 0.00, 258.00);
CreateDynamicObject(3594, -2098.24, 30.36, 34.58, 0.00, 0.00, 142.00);
}



public OnGameModeInit()
{
Sfcity();
return 1;
}

of course this is just an example. Complete code takes a few thousand rows.


Re: Objects [HELP] - Malicious - 06.09.2014

Option 1:
place the Objects into the OnGameModeInit and delete the stock.

Option 2:
Create a filterscript and load it along side the main script


Re: Objects [HELP] - Supermaxultraswag - 06.09.2014

Oh, i fix this by my own (problem was in registration). anyway, thx, i appreciate that you tried to help me.

edit: not fixed :/


Re: Objects [HELP] - Supermaxultraswag - 06.09.2014

well, f*** new problem, its fine with dynamic objects, but when i add a lot of lines removebuildingforplayer - same problem as before. I put removebuildingforplayer under OnPlayerConnect.


Re: Objects [HELP] - Malicious - 07.09.2014

Are you using the most up to date streamer?

Код:
	stock RemoveBuildings(playerid)
	{
		//Medical center
		RemoveBuildingForPlayer(playerid, 9301, -2530.3516, 2346.2031, 7.9688, 0.25);
		RemoveBuildingForPlayer(playerid, 9352, -2421.0469, 2343.6953, 19.7891, 0.25);
		RemoveBuildingForPlayer(playerid, 9373, -2530.3516, 2346.2031, 7.9688, 0.25);
		RemoveBuildingForPlayer(playerid, 1617, -2548.9922, 2352.3359, 11.1484, 0.25);
		RemoveBuildingForPlayer(playerid, 1689, -2544.5547, 2348.0156, 13.2422, 0.25);
		RemoveBuildingForPlayer(playerid, 1617, -2539.6172, 2352.3359, 11.1484, 0.25);
		RemoveBuildingForPlayer(playerid, 1308, -2531.3438, 2336.8516, 4.2031, 0.25);
		RemoveBuildingForPlayer(playerid, 1227, -2527.2422, 2353.1250, 4.7578, 0.25);
		RemoveBuildingForPlayer(playerid, 1227, -2520.7188, 2353.1250, 4.7578, 0.25);
		RemoveBuildingForPlayer(playerid, 1227, -2524.0625, 2353.1250, 4.7578, 0.25);
		RemoveBuildingForPlayer(playerid, 1297, -2510.5469, 2335.7578, 7.3750, 0.25);

		//Tree
		RemoveBuildingForPlayer(playerid, 731, -2325.3125, 2350.0078, 3.1641, 0.25);
	}
ok, so this you could use aswell for removing Buildings,
put "RemoveBuildings(playerid);" under OnPlayerConnect


Re: Objects [HELP] - IceCube! - 07.09.2014

Quote:
Originally Posted by Malicious
Посмотреть сообщение
Are you using the most up to date streamer?
RemoveBuildingForPlayer is an SAMP Native, and nothing to do with a streamer.

@OP, send us a screen shot as I have no idea what your talking about in your original post. Also some idea of your formatting for RemoveBuildingForPlayer? Atleast one line?


Re: Objects [HELP] - Vince - 07.09.2014

The limit for remove building is something 1000-ish, but not much more. There is no fix. I don't know whether increasing the radius - while decreasing the amount of remove building lines in the process - actually improves anything since in the end the same amount of objects gets removed.

That map editor program always applies a radius of 0.25, but oftentimes you have multiple of the same objects in a close proximity - Bushes, traffic lights, etc - which can be grouped in a single line with a larger radius.


Re: Objects [HELP] - Supermaxultraswag - 07.09.2014

Quote:
Originally Posted by IceCube!
Посмотреть сообщение
RemoveBuildingForPlayer is an SAMP Native, and nothing to do with a streamer.

@OP, send us a screen shot as I have no idea what your talking about in your original post. Also some idea of your formatting for RemoveBuildingForPlayer? Atleast one line?
Screen shot about what? "Don't send" table?