Raised This Month: $51 Target: $400
 12% 

Enum structs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kyriuch
Member
Join Date: Jul 2010
Old 03-21-2019 , 17:38   Enum structs
Reply With Quote #1

Hello. I wanted to ask whether enum structs are yet released or not? Comparing to https://wiki.alliedmods.net/SourcePa...itional_Syntax they like are out now. I'm trying to use them but I can't compile a single enum struct that looks like that:
Code:
enum struct BlockData {
    int BlockId;
    float BlockPosition[3];
    float BlockRotation[3];
    int BlockTransparency;
};
And error that I get:

Code:
error 001: expected token: "{", but found "struct"
Anyone can tell me why?

Edit: I guess nevermind? Is it gonna be able in 1.10? If so, there's already a problem:

Code:
GetEntPropVector(blockEntityId, Prop_Data, "m_vecOrigin", blockData.BlockPosition);
Can't get vector from ent prop into enum struct property that is in-fact 3-elements float array.

Last edited by kyriuch; 03-21-2019 at 17:52.
kyriuch is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode