Enum Struct in Natives
Is it possible for a native to somehow return Enum Struct or to pass it by the reference?
|
Re: Enum Struct in Natives
https://github.com/alliedmodders/sou...ment-445578252
Since enum struct is basically an array you can use something like that: Code:
native void MyNative(const any[] enumStructObject); // just replace your enum struct with array if you use it for natives |
Re: Enum Struct in Natives
Does this wiki tell same ? Because, I don't know :)
https://wiki.alliedmods.net/SourcePa...x#Enum_Structs |
Re: Enum Struct in Natives
Be aware of casting, this is UB and if compiled with different ES internals, it may cause problems.
|
Re: Enum Struct in Natives
Quote:
|
Re: Enum Struct in Natives
Plugin
Code:
#include <sourcemod> Code:
#if defined _test_included_ |
All times are GMT -4. The time now is 12:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.