Re: Enum Structs Available This Holiday Season
Can we get the following methods and properties:?
Those would be useful for serialization/deserialization. |
Re: Enum Structs Available This Holiday Season
Code:
enum _:Roles |
Re: Enum Structs Available This Holiday Season
Quote:
PHP Code:
|
Re: Enum Structs Available This Holiday Season
Is anyone able to help with the above, like many others I'm running a fork of ckSurf which if using the latest SM compiler, will not compile due to the use of enums.
I'm not the most knowledgeable when it comes to the transitional syntax and I've been having trouble getting things to compile and function when making my own efforts to convert my fork of the timer. Notepad++ isn't the most forthcoming either! Sample of Code Code:
enum MapZone Code:
int g_mapZones[MAXZONES][MapZone]; // Map Zone array Many thanks in advance for anyones input on the above. |
Re: Enum Structs Available This Holiday Season
Quote:
Code:
enum struct MapZone |
Re: Enum Structs Available This Holiday Season
Quote:
Thank you so much. :) |
Re: Enum Structs Available This Holiday Season
Quote:
enum view_as<int>(Roles) just doesn't seem right to me. |
Re: Enum Structs Available This Holiday Season
Is it possible to return enum struct in function? Code below doesn't work.
Code:
enum struct STest |
Re: Enum Structs Available This Holiday Season
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:
|
Re: Enum Structs Available This Holiday Season
Code:
enum struct STest There is also a problem with using the same struct type as a method argument type: Code:
enum |
All times are GMT -4. The time now is 13:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.