nameList[random_num(0,MAXNAMES)]
->
nameList[random(sizeof nameList)]
By making that change you don't need MAXNAMES at all. Which would make it a lot easier to edit.
Make a dynamic array. (Look in cellarray.inc)
Load the names into it from the ini.
Done.