Raised This Month: $ Target: $400
 0% 

Using dynamic arrays for all players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 11-07-2009 , 22:28   Using dynamic arrays for all players
Reply With Quote #1

I need some help with this final bit of code for this mod. I tested it and it obviously doesn't work so I was wondering if there's a similar method that you're supposed to do so it will work. I'm trying to create a dynamic array for all players because the size is reliant on the size of another dynamic array.

Here is the original static array...

PHP Code:
new g_iPlayerBind[MAX_BINDS][33][16]; 
Here was my attempt at converting it to a dynamic array...

PHP Code:
new Array:g_iPlayerBind[33];

public 
plugin_cfg()
{
      for(new 
033i++)
      {
            
g_iPlayerBind[i] = ArrayCreate(16);
      }
}

// To get the string...
ArrayGetStringHandle(g_iPlayerBind[id], num); 
So, any help would be greatly appreciated. If you need to see more code just ask - just be a bit specific about what part of the code.
shadow.hk is offline
Send a message via MSN to shadow.hk
 



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 17:38.


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