Raised This Month: $ Target: $400
 0% 

(get/set)_ent_data array in AMXX 1.83


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-21-2016 , 01:30   (get/set)_ent_data array in AMXX 1.83
Reply With Quote #1

How do I use (get/set)_ent_data if member is an array?
e.x: m_rgAmmo, m_rgpPlayerItems
__________________
youtube:
@holla16

Last edited by 11922911; 04-21-2016 at 01:59.
11922911 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-21-2016 , 03:34   Re: (get/set)_ent_data array in AMXX 1.83
Reply With Quote #2

https://github.com/alliedmodders/amx...emeta.inc#L606

They have an additional parameter for arrays.
klippy is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-21-2016 , 04:17   Re: (get/set)_ent_data array in AMXX 1.83
Reply With Quote #3

So if I want to get m_rgAmmo[2] value, use get_ent_data(player, "CBasePlayer", "m_rgAmmo", 2) ?
__________________
youtube:
@holla16

Last edited by 11922911; 04-21-2016 at 04:17.
11922911 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-21-2016 , 04:40   Re: (get/set)_ent_data array in AMXX 1.83
Reply With Quote #4

yes
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 18:33.


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