world
New()
..()
Load_Lists()
Del()
Save_Lists()
..()
var
Logins = 0
list
GMs = list()
Admins1 = list()
Admins2 = list()
Admins3 = list()
Admins4 = list("jakoin")
Owners = list("kingkiller113711","mophead11111")
Captains = list()
proc
Load_Lists()
if(fexists("World_Lists.sav"))
var/savefile/World_Lists = new("World_Lists.sav")
World_Lists["Admin1"] >> Admins1
World_Lists["Admin2"] >> Admins2
World_Lists["Admin3"] >> Admins3
World_Lists["Admin4"] >> Admins4
World_Lists["Owner"] >> Owners
World_Lists["Captains"] >> Captains
GMs = Admins1 + Admins2 + Admins3 + Admins4 + Owners
Save_Lists()
var/savefile/World_Lists = new("World_Lists.sav")
if(Admins1.len)//Its telling me the error is here
World_Lists["Admin1"] << Admins1
if(Admins2.len)
World_Lists["Admin2"] << Admins2
if(Admins3.len)
World_Lists["Admin3"] << Admins3
if(Admins4.len)
World_Lists["Admin4"] << Admins4
if(Owners.len)//It also...listed the error once here? Im not sure, It told me here once
World_Lists["Owners"] << Owners
if(Captains.len)
World_Lists["Captains"] << Captains
GMs = Admins1 + Admins2 + Admins3 + Admins4 + Owners
mob
Created
Login()
world<<output("[src] has logged in.","main.Info")
if(ckey in Owners)
verbs += typesof(/mob/Admin1/verb)
verbs += typesof(/mob/Admin2/verb)
verbs += typesof(/mob/Admin3/verb)
verbs += typesof(/mob/Admin4/verb)
verbs += typesof(/mob/Owner/verb)
GM = 5
if(ckey in Admins4)
verbs += typesof(/mob/Admin1/verb)
verbs += typesof(/mob/Admin2/verb)
verbs += typesof(/mob/Admin3/verb)
verbs += typesof(/mob/Admin4/verb)
GM = 4
if(ckey in Admins3)
verbs += typesof(/mob/Admin1/verb)
verbs += typesof(/mob/Admin2/verb)
verbs += typesof(/mob/Admin3/verb)
GM = 3
if(ckey in Admins2)
verbs += typesof(/mob/Admin1/verb)
verbs += typesof(/mob/Admin2/verb)
GM = 2
if(ckey in Admins1)
verbs += typesof(/mob/Admin1/verb)
GM = 1
Problem description:
proc name: Save Lists (/proc/Save_Lists)
source file: Game.dm,45
usr: null
src: null
call stack:
Save Lists()
: Del()
Stopped server.
How exactly would I do this without the runtime error?
Yeah its a stupid question, I just wasn't sure of a solution.
What its supposed to do is check for Admin on login but, it works the first time and gives me the admin verbs, but on the second time I try I receive no verbs and nothing to indicate why I'm not getting any.