Here is the function you want :
PHP Code:
pickup_next_ent_model(model[], length)
{
static lastString = -1;
if( ++lastString >= ArraySize(g_sPropsModel) )
{
lastString = 0;
}
ArrayGetString(g_sPropsModel, lastString, model, length);
}
And here is how you gonna use it in your code :
PHP Code:
pickup_next_ent_model(szEntModel, charsmax(szEntModel));
__________________