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 i = 0; i < 33; i++)
{
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.