If your claim is some native is broken don't show your code. Instead, create a minimal example that we can run and reproduce the issue.
If you suspect the code is the problem, then yes, show what you did.
PHP Code:
#include <amxmodx>
enum _:dummy
{
a,
b[10],
c
};
public plugin_init()
{
new buffer[dummy];
new Array:test = ArrayCreate(sizeof(buffer));
new bool:ok = true;
for(new i = 0; i < 1000; i++)
{
new position = ArrayPushArray(test, buffer);
if(position != i)
{
server_print("Wrong return value: %d != %d", i, position);
ok = false;
break;
}
}
if(ok)
{
server_print("Return value is fine")
}
}
Output:
Code:
Return value is fine
The native is not wrong.
__________________