Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-15-2008, 05:00 AM
Ronnie Ronnie is offline
Registered User
Join Date: Jun 2008
Location: Nj, USA
Posts: 48
Ronnie is on a distinguished road
Send a message via AIM to Ronnie
For( problem.

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 (dbandd.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
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.