When I use a name in line 13, line 14 comes out with "0 " instead of a name. Could someone help me fix it so that it stores and displays a name instead of a 0?
You simply forgot the $ sign in line 14. (SmileBasic thinks it's a variable instead of a string.)
Also, change the comma to a semicolon so it reads NAME$;