- You should use FM_SetModel. When you look at the MonsterMod source code, you see well SET_MODEL is well used. So test better.
- Before precaching, check if model exists.
- Don't use the native equal to check if a string is empty. In your code, ie : if( !model[i+1][ 0 ] ) is enough.