Delete_GM_Notes()
set category = "Admin"
set name="GM Notes (Delete)"
GMlog = new()//deletes all entries in the list
fdel("savefiles/GMlog.sav")//deletes the save file for reports
Check_GMnotes()
set category = "Admin"
set name="GM Notes (Read)"
var/html = {"<font size=3><b>GM NOTES: </b></font size>
<hr>
<font color=black>
<font size=2>"}
if(length(GMlog))
for(var/R in GMlog)
html+="[R]<br><br>"
else
html+="<br><b>No GM NOTES</b>"
html+="<br>---------------------------<br><br><b><u>Current Time</u>: [time2text(world.realtime)]</b>"
usr<<browse(html,"window=who,size=550x600")
Write_GMnotes(msg as text)
set category = "Admin"
set name="GM Notes (Write)"
if(!msg) return
GMlog+="[time2text(world.realtime)] - <b>[usr.client.address] - [usr] ([usr.key])</u></b><br>[html_encode(msg)]<br>---"
usr << "Your note has been saved"
var
list
GMlog = list()
The only problem is that the save files for the log do not save after a reboot. (BTW the coding isn't actually this sloppy its just i had to take pieces from different spots and put it onto here.)