Objects [HELP]
#1

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
Reply
#2

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

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.
Reply
#4

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
Reply
#5

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

edit: not fixed :/
Reply
#6

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.
Reply
#7

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
Reply
#8

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?
Reply
#9

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.
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)