Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 08-27-2004, 10:10 AM   #1
Big
Disabled
 
Join Date: Feb 2004
Posts: 46
Default need help for tcl programming

hello

I want to script a racers ranking (with points)
so on the end of the race i've to go in .ioftpd.message to get the name of the racers and to give them "points" (and then update the ranking, but thats for later)

i never script in tcl (but i've notions in C so i think there is no problem)

here is my question : how can i get the name of all the racers ?
i've thunk about a "seek" cmd but i'm not sure about how to use it...


help is welcome

thx a lot
Big is offline  
Old 08-27-2004, 02:56 PM   #2
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

tcl has a regexp procedure... probably best for something like that. see tcl manual for usage.

open text file
for each line
check for a specific regexp
if found
you got your racer name in a var now
.
.
close file
Mouton is offline  
Old 08-31-2004, 07:51 AM   #3
Big
Disabled
 
Join Date: Feb 2004
Posts: 46
Default

ok thx, i'm going to search how to use that :-)
Big is offline  
Closed Thread

Tags
points, racers, ranking, script, tcl

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 -5. The time now is 11:59 AM.

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