Raised This Month: $ Target: $400
 0% 

Array VS Multiple Array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-18-2021 , 09:07   Re: Array VS Multiple Array
Reply With Quote #6

You could also do something similar to engine entity_get_* and fakemeta pev, it does not really matter, choose what you are comfortable with.

Code:
enum {     zombie_health,     zombie_name,     zombie_desc,     ... } native get_zombie_class_int(index, var/key/value) native Float:get_zombie_class_float(index, var/key/value) native get_zombie_class_string(index, var/key/value, out[], len) or just native get_zombie_class_opt/prop/var/key/value(index, opt/prop/var/key/value, any:...) whatever you prefer

As for the first question, I do also use the same method as celena. Honestly it does not matter either.
__________________









Last edited by CrazY.; 06-18-2021 at 09:09.
CrazY. 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 02:31.


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