The variable entry is readonly: it’s assigned internally only by the foreach code, and you can’t modify it. If you really want to allow edition of scrollingNotices elements via GUI, the code must be something like this:
for (int i=0; i<scrollingNotices.Length; i++){
GUILayout.BeginHorizontal();
scrollingNotices _= GUILayout.TextField(scrollingNotices*);*_
… But if you just want to display the elements of scrollingNotices, keep your original code and use GUILayout.Label instead: foreach (string entry in scrollingNotices) { GUILayout.BeginHorizontal(); GUILayout.Label(entry); …