Team
parent_type = /obj/
var
teamname=""
members=list()
leader=""
proc/save()
var/a=list2params(members)
var/b=src.leader
text2file("[a]","Playersnew/Teams/[src.teamname]/members.txt")
text2file("[b]","Playersnew/Teams/[src.teamname]/leader.txt")
proc/load()
var/file_data = file2text("Playersnew/Teams/[src.teamname]/members.txt")
var/b=params2list(file_data)
src.members+=b
world<<"[b]....[file_data]"
var/file_data2 = file2text("Playersnew/Teams/[src.teamname]/leader.txt")
var/a="[file_data2]"
src.leader=a
world<<"[a]....[file_data2]"
Problem description:
the text2file is writing into the file, when i try to load, it is an empty list?
Edit:the paths were the same just a posting error.