I am getting invalid index 0 (count 0) in this part of code --
Code:
new i
for ( i = 0; i < sizeof g_cHumanModels; i++ )
{
ArraySetString(model_human, i, g_cHumanModels[i])
}
This loop is inside
plugin_precache() and
model_human = ArrayCreate( 32, sizeof g_cHumanModels )
This is
g_cHumanModels part -
Code:
new const g_cHumanModels[][] =
{
"model_one",
"model_two",
"model_three",
"model_four"
}
Whats my mistake and how to fix it ?