Hello, is there any way to pass 2d array through native?
Example:
Code:
new const g_szClassWeapons[][] = { "Weapon 1", "Weapon 2", "Weapon 3" };
public test()
{
native_test(g_szClassWeapons, sizeof g_szClassWeapons);
}
...
public _native_test(iPluginId, iParamsCount)
{
new szWeapon[][];
new iArraySize = get_param(2);
get_array(1, szWeapon, iArraySize);
for (new i = 0; i < iArraySize; i++)
server_print("Weapon[%d] = %s", i, szWeapon[i]);
}
__________________