Quote:
Originally Posted by Neuro Toxin
Code:
stock float[] int2float(const int[] array, int count)
{
float[] out = new float[count];
for (int i = 0; i < count; i++)
{
out[i] = float(array[i]);
}
return out;
}
|
You can't return a dynamic array. Sizes of destination and output arrays have to be known at compile-time, and the destination array has to be equal or greater in size than the output array.