Inside the for( there is something wrong, and I know I'm redefining inside the for( but that's not the problem, the array d.lists is a list of player accounts and then once it converts to dband, I need it to load all those accounts files "guild/player saccount_groster.txt" then remove the d.guild which is a guildname and then reupload it using savelines.All the params are correct I echoed them all. Someone Help!
PHP Code:
case "disband":
d.guild = params[1];
d.plr = params[2];
dingguild.loadlines("guild/local_guilds_list.txt");
dingguild.remove(d.guild);
deletefile("guild/"@d.guild@"_glist.txt");
d.lists = loadlines("guild/"@d.guild@"_groster.txt");
//Where it fails ;/--------------------------------------
for (dband: d.lists){
dgrstr.loadlines("guild/"@dband@"_glist.txt");
dgrstr.remove(d.guild);
dgrstr.savelines("guild/"@dband@"_glist.txt", 0);
dppl = findPlayer(dband);
dppl.chat = "The guild, "@d.guild@" has been disbanded!";
with(dppl)clientr.(@d.guild).rank=0;
}
removeguild(@d.guild);
deletefile("guild/"@d.guild@"_groster.txt");
l.list.loadlines("guild/Leaders_list.txt");
l.list.remove(@d.guild@"="@d.plr@"");[CODE][/CODE]
l.list.savelines("guild/Leaders_list.txt", 0);
break;
Thanks in advance
-Ronnie