Save()
var/FileName="players/Global.sav"
if(!fexists(FileName))
return
var/savefile/F=new(FileName)
var/list1 = list()
for(var/obj/WarObjs/NpcWeakIcon/O in world)
list1 += O;
F["NpcFracoIcon"] << list1
Load()
var/FileName="players/Global.sav"
var/cont = 0
if(fexists(FileName))
var/savefile/F=new(FileName)
F["NpcFracoIcon"] >> list1
for(var/obj/WarObjs/NpcWeakIcon/M in list1)
cont++
new /obj/WarObjs/NpcWeakIcon(locate(M.x, M.y, M.z))
Problem description:
the save is ok, i think..
but when i use load dosn't work.. in the save is saved 1 Obj but in the load the cont var keep 0, i don't know why..
sorry about the bad english kkkk