The compiler doesn't appear to currently understand it as a type when parsing the function declaration, interestingly using it as
any[] appears to work correctly but I have no idea if that is intended.
As with other array-like things in SourcePawn, it's almost certainly better to pass it as a param to be filled in by the callee.
PHP Code:
enum struct STest
{
int a;
int b;
}
STest test;
any[] GetTest()
{
return test;
}
public void OnPluginStart()
{
test.a = 4;
test.b = 8;
STest other;
other = GetTest();
PrintToServer("%d = %d, %d = %d", test.a, other.a, test.b, other.b);
}
__________________