Un .txt dans un combo (dialog)

glck Messages postés 9 Date d'inscription vendredi 27 août 2004 Statut Membre Dernière intervention 16 novembre 2004 - 8 nov. 2004 à 10:54
skotmarud Messages postés 116 Date d'inscription samedi 5 avril 2003 Statut Membre Dernière intervention 26 janvier 2008 - 8 nov. 2004 à 22:09
Bon voila je me suis lancer dans la creation de bot irc mais voila je bloc sur un point comme je suis un gros noob je ne sais pas comment faire apparetre mon .txt dans un combo ou une liste (dans un dialog) http://www.siteduzero.com/forums/html/emoticons/tongue.gif merci de m'aider http://www.siteduzero.com/forums/html/emoticons/whistling.gif

I am a noob & je ne suis pas comme tous le monde ;)

4 réponses

cs_PaDa Messages postés 1804 Date d'inscription mardi 15 juillet 2003 Statut Membre Dernière intervention 22 septembre 2009 5
8 nov. 2004 à 12:16
/did -a NomDuDialog Id Texte....
(/did -ra si tu veux effacer ce qu'il y avait avant)
PaDa
0
talking Messages postés 343 Date d'inscription dimanche 30 novembre 2003 Statut Membre Dernière intervention 19 août 2006 1
8 nov. 2004 à 17:49
ON *:DIALOG:nomdudialog:init:0: {
var %i = 1
while (%i <= $lines(chemindufichier.txt)) {
.did -a $dname Idducombo $read(chemindufichier.txt,%i)
inc %i
 }
}
0
cs_tofu Messages postés 1726 Date d'inscription vendredi 12 septembre 2003 Statut Membre Dernière intervention 13 juin 2009 1
8 nov. 2004 à 20:38
var %i = 1, %ù: $lines(fichier.txt)
while %i <= %ù: {
did -a $dname Id $read(fichier.txt,$v1)
inc %i } }

ça évite d'évaluer $lines() à chaque fois pour rien ..

----
0
skotmarud Messages postés 116 Date d'inscription samedi 5 avril 2003 Statut Membre Dernière intervention 26 janvier 2008
8 nov. 2004 à 22:09
/loadbuf [lignes] [-pirsgleopcNt<topic>] <fenêtre | ID dialogue> <nom de fichier>
Charge le nombre de lignes spécifiées depuis la fin du fichier dans la fenêtre spécifiée.

/loadbuf -o nomdialog id fichier.txt
0
Rejoignez-nous