Rehash & Restart
#6
Tout d'abord, pourriez-vous (un peu tous) faire des efforts pour écrire correctement. Que ce soit au niveau de l'orthographe ou de la grammaire.
Babytigrou16 a écrit :Hello tout le monde, écoutais j'ai coder un pti code ^^ et malheuresement je ne voie pas où est l'erreur :/ et disont que j'ai casiment finie le TCL que je vais mêtre en publication ^^ alors merci de m'aider sur ce pti projet Smile
Mode traduit: Hello tout le monde, j'ai codé un petit script et malheureusement je ne vois pas où est l'erreur, alors que j'ai quasiment fini le TCL que je vais mettre en publication./mode

Babytigrou16 a écrit :
tcl
bind pub - !rehash rehash 
proc rehash {nick host hand chan} {
    global vhost3 
    foreach vhost $vhost3 {
        if {[string match -nocase $vhost $uhost]}  { 
	rehash
            putquick "PRIVMSG #Admin \00307$nick \00312à utiliser la commande \00306!rehash"
              } 
	}
}
 
bind pub - !restart restart
proc restart {nick host hand chan} {
    global vhost3
    foreach vhost $vhost3 { 
        if {[string match -nocase $vhost $host]}  {
	restart
            putquick "PRIVMSG #Admin \00307$nick \00312à utiliser la commande \00306!restart"
              } 
	}
}

Déjà, nous dire ce qu'il y a dans $vhost3 peut nous aider. Et c'est "bidule a utilisé", conjugaison niveau CE1.
Babytigrou16 a écrit :Voici l'erreur que j'ai en CTCP
[01:04:26] <YoShi> [07:04] Tcl error [restart]: wrong # args: should be "restart nick host hand chan"
[01:04:28] <YoShi> [07:04] Tcl error [rehash]: wrong # args: should be "rehash nick uhost hand chan"
Normal. Un bind pub envoie un argument de plus que ceux que tu as définis dans tes procédures:
Cette page te dit que la procédure doit comporter: <nick> <user@host> <handle> <channel> <text>

Babytigrou16 a écrit :Et j'ai une autre question, je vienne de remarquet que mon eggdrop quand je lui demande de ce sajoin, ou de sajoin une personne il ne réagi pas... le code est bon pourtant... et il ce passe rien :/ Jvous donne un code
Le SAJOIN, c'est mal.
Qui est Yoshi ? L'eggdrop ? Si oui, le SAJOIN est inutile, il vaudrait mieux un simple join, et de toutes manières ça ne marchera pas si l'eggdop n'a pas ce canal dans sa liste de canaux: il en repartira automatiquement en te disant "joined #canal but don't want to... leaving"
Regarde plutôt avec channel add pour lui ajouter le canal, il le rejoindra automatiquement.
Répondre


Messages dans ce sujet
Rehash & Restart - par Babytigrou16 - 01/06/2010, 07:04
RE: Rehash & Restart - par Babytigrou16 - 01/06/2010, 07:41
RE: Rehash & Restart - par djdu32 - 01/06/2010, 10:24
RE: Rehash & Restart - par heretoc - 01/06/2010, 11:10
RE: Rehash & Restart - par djdu32 - 01/06/2010, 11:38
RE: Rehash & Restart - par Babytigrou16 - 01/06/2010, 16:50
RE: Rehash & Restart - par CrazyCat - 01/06/2010, 13:09
RE: Rehash & Restart - par CrazyCat - 01/06/2010, 17:06
RE: Rehash & Restart - par Babytigrou16 - 01/06/2010, 18:13
RE: Rehash & Restart - par Marc - 01/06/2010, 18:26
RE: Rehash & Restart - par MenzAgitat - 02/06/2010, 03:33
RE: Rehash & Restart - par Babytigrou16 - 01/06/2010, 18:52
RE: Rehash & Restart - par CrazyCat - 02/06/2010, 09:20
RE: Rehash & Restart - par Marc - 02/06/2010, 15:11

Atteindre :


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