mIRC Home    About    Download    Register    News    Help

Print Thread
#253190 29/05/15 09:00 PM
Joined: May 2015
Posts: 4
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: May 2015
Posts: 4
Hello! So I am trying to make a points system for a channel, and it's going well but there is an issue I found. The points (cookies) do get written to the .ini file, but when people use !cookies nothing happens.

Code:

Code:
on *:text:!cookies:#:{
  if ((%floodcookies) || ($($+(%,floodcookies.,$nick),2))) { return }
  set -u10 %floodcookies On
  set -u30 %floodcookies. $+ $nick On
  msg # $nick has $readini(C:\Users\Cosmicluck\Desktop\Cookies.ini,$+(#,.,$nick),Cookies) cookies.
}

on !*:join:#:{
  $+(.timercookies.,#,.,$nick) 0 100 add.pts $+(#,.,$nick)
  add.pts $+(#,.,$nick)
}

on !*:part:#:$+(.timercookies.,#,.,$nick) off
alias -l add.pts {
  writeini -n C:\Users\Cosmicluck\Desktop\Cookies.ini $1 Cookies $calc($readini(C:\Users\Cosmicluck\Desktop\Cookies.ini,$1,Cookies) + 1)
  if ((%floodpart) || ($($+(%,floodpart.,$nick),2))) { return }
  set -u10 %floodpart On
  set -u30 %floodpart. $+ $nick On
}


Thanks! IF you need more info just ask!

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
If there is no output at all, then this line is the problem

Code:
if ((%floodcookies) || ($($+(%,floodcookies.,$nick),2))) { return }


maybe you have %floodcookies permanently set


Link Copied to Clipboard