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

[SOLVED]Using AdtArray with extensions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-27-2014 , 11:42   [SOLVED]Using AdtArray with extensions
Reply With Quote #1

How would I get the array size of an adt array with INativeInvoker.
Also how would I check if a handle is a valid adtArray handle using HandleSys
Edit: Thx to PowerLord, I'm going to use Valve's CUtilVector

Last edited by WildCard65; 06-27-2014 at 12:29.
WildCard65 is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 06-27-2014 , 12:02   Re: Using AdtArray with extensions
Reply With Quote #2

public/IADTFactory.h
Chrisber is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-27-2014 , 12:04   Re: Using AdtArray with extensions
Reply With Quote #3

If you don't need to send/receive these from natives, use a CUtlVector<Type> instead (where Type is the type you're storing in it).

For that matter, you can create your own handles from an extension.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-27-2014 at 12:05.
Powerlord is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-27-2014 , 12:12   Re: Using AdtArray with extensions
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
If you don't need to send/receive these from natives, use a CUtlVector<Type> instead (where Type is the type you're storing in it).

For that matter, you can create your own handles from an extension.
How would I use a CUtlVector
Edit: NVM
Edit2: Wow, that seems much more easier to use then INativeInvoker
Edit3: PowerLord, THANK YOU!
Edit4: @Chrisber, that only does basic tries.

Last edited by WildCard65; 06-27-2014 at 12:30.
WildCard65 is offline
Reply



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 04:57.


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