Call stack (most recent call first) 0x000E61D0 => 0x0000743c()
#1

I'm having a few issues with objects at the moment, specifically ~15,000 of them crashing players/me in different locations every time.

I'm not going to post the code because it's just the ordinary CreateDynamicObject function to create objects using Incognitos streamer. On the crash I get the Op code: 0x00544BBE which is object related. Now Incognitos streamer should certainly be able to handle more then 15k objects so what is causing this.

However; In the server_log.txt using the crashdetect plugin I get these errors:

Код:
[21:33:33] [debug] Run time error 4: "Array index out of bounds"
[21:33:33] [debug]  Accessing element at index 16000 past array upper bound 15999
[21:33:33] [debug] AMX backtrace:
[21:33:33] [debug] #0 0000748c in ?? (0x00000360, 0xc50598a4, 0x44d99c29, 0xbe8f6944, 0x00000000, ... <2 arguments>) from Objects.amx
[21:33:33] [debug] #1 000e6220 in ?? () from Objects.amx
[21:33:33] [debug] #2 000ea36c in public Objects21 () from Objects.amx
They occur any time the server is restarted and every time the player crashes because of the '0x00544BBE' error. There is literally 0 results on ****** for these so yeah.... Any help at all is good.

EDIT: This is the original code. It's only missing the rest of the objects.
Код:
#define STREAM_CONSTANT 180

//forward Objects1();
//forward Objects2(); ...
forward Objects21();

public OnFilterScriptInit()
{

    SetTimer("Objects21", 21000, 0);
	return 1;
}

new objects[15000][2], some_var = 0; 

stock r_CreateObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
	objects[ some_var ][ 0 ] = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, -1, -1, -1, STREAM_CONSTANT + GetColSphereRadius(modelid));
	objects[ some_var ][1] = modelid;
	some_var++;
	return 1;
}

stock CreateObjects21()
{
	r_CreateObject(2000,-983.6800000,2811.7900000,73.7900000,0.0000000,0.0000000,0.0000000);
	return 1;
}

public Objects21()
{
	CreateObjects21();
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)