Raised This Month: $ Target: $400
 0% 

How to initialize dynamic array in enum


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DavidLin
Member
Join Date: Jan 2016
Old 01-31-2016 , 15:43   How to initialize dynamic array in enum
Reply With Quote #1

How do I initialize a dynamic array in enum ? If I want to add info in them later on ?

PHP Code:
new Array: zombie_classes;
enum _ZombieSpecifics {
        
zClassId,
        
zNameMAX_NAME_LENGTH ], zDescriptionMAX_DESC_LENGTH ],
        
zModelMAX_MODL_LENGTH ], zClawsMAX_MODL_LENGTH ],
        
zHealthzArmorzSpeedzGravity,
        Array: 
zHit, Array: zMiss, Array: zPain, Array: zDeath <-- How to initialize these ?
}

public 
plugin_precache( ) {
        
zombie_classes ArrayCreateZombieSpecifics );

DavidLin 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 09:23.


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