Raised This Month: $32 Target: $400
 8% 

Solved ArrayList in <include> for use in two plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 03-13-2019 , 15:25   ArrayList in <include> for use in two plugin
Reply With Quote #1

Hello.
I have in my include declared this ArrayList

PHP Code:
ArrayList[MAXPLAYERS 1PlayerCore;
//I also try this
ArrayList PlayerCore[MAXPLAYERS 1]; 

In CORE plugin is called this in Plugin_init located in include too
PHP Code:
stock int CreatePlayerArrays()
{
    for(
int i 1<= MaxClientsi++)
        
PlayerCore[i] = new ArrayList(5);

But if i want use this in other plugins i get error
[SM] Exception reported: Invalid Handle 0 (error: 4)

But why? Please help
__________________

Last edited by _GamerX; 03-14-2019 at 05:51.
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
 



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


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