obj/guild/make
verb
MakeGuild()
set category="Others"
var/savefile/F = new("Guilds.sav")
global.guilds = F["Guilds.sav"]
var/gname = input ("What do you wish to name this guild?") as text|null
if(global.guilds.Find("[gname]"))
alert("That guild name has already been created..")
else
usr.guild = "[gname]"
usr.worldsay = usr.guild
usr.Inguild = 1
global.guilds += "[gname]"
F["Guilds.sav"] << global.guilds
usr.contents += new/obj/guild/leader
usr.verbs += typesof(/mob/Guild/verb)
del(src)
here is the error on the Dreamseeker
runtime error: Cannot execute null.Find().
proc name: MakeGuild (/obj/guild/make/verb/MakeGuild)
source file: Guild.dm,12
usr: Ky (/mob/characters/Mutant)
src: the make (/obj/guild/make)
call stack:
the make (/obj/guild/make): MakeGuild()
I think the error is trying to find the guild if its excist on the sav file but when it doesn't it returns with this error!
i need help but i want to know whats wrong instead of giving me the code. i want to learn the error thats the main reason for posting this thread!
KyleCias
I think try
before you create the save file