action non déclarer.
#1
Bonjour,

Voilà j'ai commencé à reprendre le code de progfile de Pooshy mais il se trouve que lorsque je fais appel à $action il me dit no such variable..

Hors j'ai essayé de mettre variable action et ça na rien donnais.

Pourtant dans ma procédure action et bien dedans je ne comprends pas..
Si quelqu'un à une idée..
Voici le code.

tcl
proc fepo {nick action arg} {
        set arg [charfilter $arg]
        set fa [open "$basedir/$autorise(fichier)" a+]
        seek $fa 0
        while {![eof $fa]} {
             set get [gets $fa]
             if {[string equal [string tolower $get] [string tolower $nick]]==1} {
             }
        }
        close $fa
        return 0
    }
    if {$action=="ajout"} {
        if {$r!=""} {
            puts $fa $r
        } else {
            puts $fa $arg
        }
            return 1
    }
    if {$action=="sup"} {
        if {$r!=""} {
            if {![string match -nocase $arg [lindex $fa 0]] && ![string match -nocase $arg [lindex $fa 1]]} {
                puts $fa $r
            } else {
                return 1
            }
        }
    }
    if {$action=="join"} {
        if {$r!=""} {
            puts $fa $r
            if [string match -nocase [lindex $fa 0] $arg] {
                return 1
            }
        }
        close $fa
    }


Répondre Avertir


Messages dans ce sujet
action non déclarer. - par aliasangelius - 30/10/2011, 12:05
RE: action non déclarer. - par djkenny - 30/10/2011, 12:52
RE: action non déclarer. - par aliasangelius - 30/10/2011, 14:05
RE: action non déclarer. - par aliasangelius - 30/10/2011, 14:23
RE: action non déclarer. - par djkenny - 30/10/2011, 14:32
RE: action non déclarer. - par aliasangelius - 30/10/2011, 14:45
RE: action non déclarer. - par djkenny - 30/10/2011, 18:51
RE: action non déclarer. - par aliasangelius - 31/10/2011, 11:27
RE: action non déclarer. - par djkenny - 31/10/2011, 14:36
RE: action non déclarer. - par djkenny - 31/10/2011, 14:40
RE: action non déclarer. - par aliasangelius - 31/10/2011, 14:44
RE: action non déclarer. - par djkenny - 31/10/2011, 14:46
RE: action non déclarer. - par aliasangelius - 31/10/2011, 15:27
RE: action non déclarer. - par djkenny - 31/10/2011, 17:55
RE: action non déclarer. - par djkenny - 31/10/2011, 18:05
RE: action non déclarer. - par aliasangelius - 31/10/2011, 19:05
RE: action non déclarer. - par djkenny - 31/10/2011, 22:04
RE: action non déclarer. - par aliasangelius - 31/10/2011, 22:17
RE: action non déclarer. - par djkenny - 31/10/2011, 22:39
RE: action non déclarer. - par DnS - 31/10/2011, 22:44
RE: action non déclarer. - par djkenny - 31/10/2011, 22:47
RE: action non déclarer. - par DnS - 31/10/2011, 22:55
RE: action non déclarer. - par aliasangelius - 31/10/2011, 22:59

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté