ID:146736
 
Code:
var
GMlist[0]

proc/GMlistadd(key as text) //Used to add a GM to the list
var/ckey=ckey(key)
if (!GMlist.Find(ckey))
GMlist.Add(ckey)

client/New()
..()
if (GMlist.Find(ckey))
usr.GMLevel = null
usr.AddStaffVerbs()

world/New()
..()
var/savefile/S=new("GMlists.sav")
S["GM"] >> GMlist
if (!length(GMlist)) GMlist=list()

world/Del()
var/savefile/S=new("GMlists.sav")
S["GM"] << GMlist
..()


Problem description:

Ok. so i add a GM to the list and use a GM verb to check and see if its on the GMlist... it is. i log out and back in hoping the code will work. and what do u know. it created the save but for some reason it isnt adding anything to the GMlist. Am i missing something?
I believe in world/Del() the world deleted before you actually get to do anything. You should have it save the GM list everytime a name is added or removed.
In response to Crashed
I mean i open the file with a save file editor. and the name is in there. but for some reason its not loading the name into the list when i make a new world. it's saving fine. its just not loading
In response to Odine
anybody? i rly need to add this feature to the game i help program and i cant do that if i cant get the list to load.