mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2006
Posts: 25
T
tekano Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Mar 2006
Posts: 25
I'm trying to change this:

Code:
on *:action:*:*:{
  inc %channel.actions
}


into something like this: (ofcourse the code below doesn't work)
Code:
on *:action:*:*:{
  inc $readini channelstats.ini $chan $right(actions,7)
}


How do I get it to work?

I tried the 2 options below (it didn't work):
Code:
on *:action:*:*:{
  writeini channelstats.ini $chan $right(actions,7) $calc($readini channelstats.ini $chan $right(actions,7) + 1)
}


Code:
on *:action:*:*:{
  writeini channelstats.ini $chan $right(actions,7) $calc(($readini channelstats.ini $chan $right(actions,7)) + 1)
}

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on *:action:*:#:{
  .writeini -n channelstats.ini $chan Actions $calc(1 + $readini(channelstats.ini,n,$chan))
}


I suggest you read the help file for the correct format for the $readini command. What you posted is very similar to what I did, with the main exception being the format of the $readini command.

Joined: Mar 2006
Posts: 25
T
tekano Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Mar 2006
Posts: 25
Originally Posted By: RusselB
Code:
on *:action:*:#:{
  .writeini -n channelstats.ini $chan Actions $calc(1 + $readini(channelstats.ini,n,$chan))
}


I suggest you read the help file for the correct format for the $readini command. What you posted is very similar to what I did, with the main exception being the format of the $readini command.


well, I had to switch the n and the $chan in your version but it works laugh thanks.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
RusselB makes a note to take his own advice.


Link Copied to Clipboard