mIRC Home    About    Download    Register    News    Help

Print Thread
#172861 17/03/07 12:50 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Code:
ON *:KICK:#testt:{
  if (%count == $null) {
    set %count 1
  }
  Else {
    %inc 
  }
}


?? Doesn't work ??


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #172863 17/03/07 01:26 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:kick:#testt: {
  inc %kick.count
}


Your problem was that you used % with inc (it's not a variable). wink

Anyhow, you can inc a variable even when it's $null, so you don't need anything except the inc line.

Btw, I recommend using a variable such as above, or even more unique. %count could be used by many scripts and using it in yours could cause a conflict. The more unique your variables are, then less chance of having conflicts.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #172877 17/03/07 02:52 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
cool :P


Squee whenever a squee squee's. Squee whenever a squee does not squee.

Link Copied to Clipboard