Go Back   FlashFXP Forums > > > >

Caladan's scripts project-zs, sitewho

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-18-2005, 03:19 PM   #1
cyrilic
Junior Member
 
Join Date: Apr 2005
Posts: 2
Default progress bar help please !

k so i got some code off of this board trying to get this working and i have a prob. It all works, but when i complete a release, the dir has 10 or so incomplete bars left behind and i have to delete them. the dir has a complete bar as well. i am using the newest version of project-zs and newest verison of ioFTPD

convert.h
Quote:
void buffer_progress_bar(struct VARS *raceI)
{
int n;

if(raceI->total.files_missing == 0 && raceI->total.files ==0)
{
for(n=0; n < 14; n++)
raceI->misc.progress_bar[n] = progressmeter_filled_char;
}
else
{
raceI->misc.progress_bar[14] = 0;
for ( n = 0 ; n < (raceI->total.files - raceI->total.files_missing) * 14 / raceI->total.files ; n++) raceI->misc.progress_bar[n] = '#';
for ( ; n < 14 ; n++) raceI->misc.progress_bar[n] = '_';
}
}
config.h
Quote:
#define progressmeter "[%V] - %3.0p%% Complete - [PLS]"
#define del_progressmeter "\\[..............] - ...% Complete - \\[PLS]"
help please thanks !
cyrilic is offline   Reply With Quote
 

Tags
complete, n++, newest, racei-total.files


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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
two servers wont FXP lostlamb General Discussion 1 03-22-2005 10:01 PM
how to change F8 to something else? Gary King General Discussion 1 11-10-2004 07:03 PM


All times are GMT -5. The time now is 04:30 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)