Communauté Eggdrop
Problème Atlantis.tcl - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum : Scripts TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=4)
+--- Sujet : Problème Atlantis.tcl (/showthread.php?tid=362)



Problème Atlantis.tcl - Dimac - 23/03/2009

Hello , voilà , j'ai un problème avec le tcl d'Atlantis :
j'ai une erreur dans l'eggdrop :
Code :
cl error [atlantis::pubmStats]: wrong # args: no script following "{ ![userExists $userName] && ![userAdd $userName $" argument

et voiçi le bout de tcl :
TCL
proc atlantis::pubmStats {nick uhost handle channel texte} {
  variable users; global antiflood atlantis
  
  # Modifie les statistiques de l'utilisateur en fonction de la phrase qu'il
  # vient de prononcer.
 
  set userName [getUserName $nick $uhost $channel]
 
  if ![isStatsChan $channel] { return }
 
  if { ![userExists $userName] && ![userAdd $userName $nick $channel] } 
{
    return
  }
 
  if {[info exists antiflood(text,$userName)] && $atlantis(anti_statsflood)} {
    return
  }


si vous pouviez m'aider . merci


RE: Problème Atlantis.tcl - Merwin - 24/03/2009

Quelle version de Tcl/Eggdrop?


RE: Problème Atlantis.tcl - CrazyCat - 25/03/2009

Pour ma part, je mettrais des codes d'erreur après les return. 0 est une bonne valeur (pas d'erreur).