mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2014
Posts: 2
Z
Bowl of petunias
OP Offline
Bowl of petunias
Z
Joined: Jun 2014
Posts: 2
Hi guys. Im new in coding and everything bla bla bla.. i just watched a How to video on point system code to twitch. My mIRC keeps telling me
Quote:
ADD.PTS Unknown Command

And after i write !points in my channel it says how much points i have. After a full night of having my channel up i have gained 0 points. Here is the code:


Code:
on *:TEXT:!profile:#: { msg $chan http://eu.battle.net/d3/en/profile/Zorgish-2452/hero/24878506 
}
alias -1 addPoints { 
  if ($1 !isnum) { echo 2 -st $1 is not a number. It needs to be a number. | halt }
  var %topic $+($chan,.,$nick)
  var %points $calc($readini(Points.ini,%topic,Points) + $1)
  writeini -n Points.ini %topic Points %points
  return %points
}
alias -1 lookUpPoints { 
  var %topic $+($chan,.,$nick)
  var %points $readini(Points.ini,%topic,Points)
  return %points
}
alias doaddpoints {
  if ($3 !isnum) { echo 2 -st $3 is not a number. It needs to be a number. | halt }
  var %topic $+($1,.,$2)
  var %points $calc($readini(Points.ini,%topic,Points) + $3)
  writeini -n Points.ini %topic Points %points
  echo -a Added points for %topic
} 

alias dorempoints {
  var %topic $+($1,.,$2)
  remini -n Points.ini %topic Points
  echo -a Removed points for %topic
}




on *:TEXT:!points:#:{
  msg # $nick has $readini(Points.ini,$+(#,.,$nick),Points) total points.
}
on $*:text:/!points (add|remove)/Si:#:{
  if ($nick isop #) {
    if ($0 < 3) { msg # Insufficient parameters: Use !points <add|remove> <user> [number] | return }
    writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) $iif($2 == add,+,-) $iif($4 isnum,$4,1))
    { msg $chan $3 now has $readini(Points.ini,$+(#,.,$3),Points) total points. }
  }
  else { msg $chan This command is only available to moderators. }
}
on !*:join:#:{
  $+(.timerpoints.,#,.,$nick) 0 300 add.pts $+(#,.,$nick)
  add.pts $+(#,.,$nick)
}
on !*:part:#:$+(.timerpoints.,#,.,$nick) off
alias -1 add.pts {
  writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
}




and i cant for the love of god figure it out. Would need some help please! Thank you!

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
All of your local aliases have a "1" instead of a lower case "L"

Joined: Jun 2014
Posts: 2
Z
Bowl of petunias
OP Offline
Bowl of petunias
Z
Joined: Jun 2014
Posts: 2
Originally Posted By: Loki12583
All of your local aliases have a "1" instead of a lower case "L"


Wow thank you so much.. That worked..hahaha!
Like i said: Im new!:(

Thank you for helping me out here <3


Link Copied to Clipboard