15.07.2018, 12:13
So, i am running into a weird problem. I am creating a two-dimensional array in a function like this:
When i call the function via:
My function crashed and i see the following in my log:
However, when i decrease the two-dimensional array size to [500][2] it does work, like this:
Result:
Can anyone tell me what is going wrong here? Creating a two-dimensional array like this as a global variable or in a DCMD funcion etc does work..
Код:
forward TestFunc(test1);
public TestFunc(test1)
{
print("0");
new testfloat[1000][2];
print("1");
}
Код:
print("Calling TestFunc");
TestFunc(count)
print("TestFunc called");
Код:
[14:04:44] Calling TestFunc [14:04:44] 0
Код:
forward TestFunc(test1);
public TestFunc(test1)
{
print("0");
new testfloat[500][2];
print("1");
}
Код:
[14:05:18] Calling TestFunc [14:05:18] 0 [14:05:18] 1 [14:05:18] TestFunc called


