Quote:
Originally Posted by RedSword
Wow; it's cool to see Sourcemod evolve . Thanks to the devs =).
I'm also surprised by the following :
How was that possible ?
|
Code:
enum MyEnum
{
MyEnum_Something,
Float:MyEnum_SomeFloat
}
// in some other command
public Native_Test(Handle:plugin, args)
{
new size = GetNativeCell(1);
new tempData[size][MyEnum];
}
In tempData above, first dimension is dynamic, second is fixed. In new-syntax, that'd have to be
Code:
int tempData[][] = new int[size][MyEnum];
__________________