View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-27-2015 , 17:32   Re: SourceMod 1.7 released!
#73

Quote:
Originally Posted by RedSword View Post
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];
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 02-27-2015 at 17:33.
Powerlord is offline