16.08.2010, 17:47
Hi,
this is the way I let create my objects in C++:
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.
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 delete "objects.push_back(object);" it doesn't crash and it creates as much as you want but you can't see them ingame.


