Quote:
Originally Posted by _GamerX
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 player, int data); //.Push method inside
int GetDataFromPlayerList(int player, int index); //.Get method inside
int GetStringFromArrayList(int player, int index, char[] buffer, int maxlength); //.GetString inside
or something like that, idk.