Crash while push back objects
#1

Hi,

this is the way I let create my objects in C++:
Код:
static cell AMX_NATIVE_CALL Core_CreateStreamedObject(AMX * amx, cell * params)
{
	Object object;
	object.objectID = params[1];
	object.x = amx_ctof(params[2]);
	object.y = amx_ctof(params[3]);
	object.z = amx_ctof(params[4]);
	object.rx = amx_ctof(params[5]);
	object.ry = amx_ctof(params[6]);
	object.rz = amx_ctof(params[7]);
	object.distance = amx_ctof(params[8]);
	objects.push_back(object);
	return 0;
}
When I'm over 250.000 objects samp-server.exe crashes while creating. Why?
When I delete "objects.push_back(object);" it doesn't crash and it creates as much as you want but you can't see them ingame.
Reply


Messages In This Thread
Crash while push back objects - by RyDeR` - 16.08.2010, 17:47
Re: Crash while push back objects - by pliva_sb - 16.08.2010, 18:04
Re: Crash while push back objects - by Zeex - 16.08.2010, 18:20
Re: Crash while push back objects - by pliva_sb - 16.08.2010, 18:22
Re: Crash while push back objects - by RyDeR` - 16.08.2010, 20:33
Re: Crash while push back objects - by RoBo - 16.08.2010, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)