Help with "If" comparison please!

By LewisNewson on Jul 29, 2014

Hey Guys, I am working on a small rank system for my Twitch Channel. Basically, here it pulls the users amount of points from the file they are stored in and checks to see if they are less than 47, if they are, then the message "TESTING" if printed out in chat. For some reason, this is not working for me and even though the user has under 47 points, no message is printed out in chat, could someone please help? Thanks!

on *:text:!rank:#:{
  if (($readini(Points.ini,$nick,Points) < 47) {
    msg $chan TESTING
  }
}

Comments

Sign in to comment.
Iyouboushi   -  Jul 29, 2014

on *:text:!rank:#:{
var %rank.points $readini(points.ini, $nick, points)
if ((%rank.points = $null) || (%rank.points < 47)) {
msg $chan test
}
}

LewisNewson  -  Jul 29, 2014

Thank you very much!

doktorpeng  -  Aug 10, 2014

this doesnt work for me :( Lewis is it possible to see your whole script ... in mine script points = coins .... i renamed it all, but it doesnt work :(

doktorpeng  -  Aug 10, 2014

what i have to do for more then one messages? elseif seems to doesnt work!?

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.