View Single Post
impossible_cc
Senior Member
Join Date: Sep 2018
Location: Ukraine
Old 03-13-2019 , 17:06   Re: ArrayList in <include> for use in two plugin
Reply With Quote #4

Quote:
Originally Posted by _GamerX View Post
So how i can work with ArrayLists via Natives?
Declare arraylist in core plugin, not in include.
Create some natives to gain access of arraylist (or data inside) to other plugins.

I do not know what you are going to do exactly, so I don't know what should I advise you, but if you want to use the same arraylist in the different plugins, you can create natives like
PHP Code:
int PushDataToPlayerList(int playerint data);     //.Push method inside
int GetDataFromPlayerList(int playerint index);  //.Get method inside
int GetStringFromArrayList(int playerint indexchar[] bufferint maxlength); //.GetString inside 
or something like that, idk.

Last edited by impossible_cc; 03-13-2019 at 17:20. Reason: edited
impossible_cc is offline