I get warnings compiling on 1.7+ (didn't occur prior)
Code:
new g_ModeConfig[MAX_MODES][ModeConfig];
public OnPluginStart(){
CreateNative("Mode_GetConfig", Native_GetModeConfig);
}
public Native_GetModeConfig(Handle:plugin, numParams)
{
new Mode = GetNativeCell(1);
if(Mode < g_TotalModes)
{
SetNativeArray(2, g_ModeConfig[Mode], ModeConfig);
return true;
}
else
{
return false;
}
}
In my .inc
Code:
enum ModeConfig {
String:Name[32],
String:Name_Short[32],
bool:Enabled,
bool:TempEnabled,
Testvalue
};
native Mode_GetConfig(Mode, Properties[]);
The error I get is with SetNativeArray(2, g_ModeConfig[Mode], ModeConfig); The second argument is the error (g_ModeConfig[Mode]).