mIRC Home    About    Download    Register    News    Help

Print Thread
#198494 29/04/08 05:43 PM
Joined: Aug 2005
Posts: 31
C
Caveman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2005
Posts: 31
Hey could someone tell me what im doing wrong here.

on *:text:*Player le_covemang*:#aow-admin: { if (($nick == AoWBot2) && (86 isin $15)) {
timer 1 1 msg $chan !auth $replace($11,,$11) }
}

Im trying to get it to return $11 but without the "," and I can't seem to figure it out.

<@AoWBoT2> Player le_covemang is joining the game on team Neutral. (ID: 3, RR: 0, IP: 86.144.125.39)

<@Caveman> !auth 3,

Many thanks.

Last edited by Caveman; 29/04/08 05:45 PM.
Caveman #198496 29/04/08 05:52 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
A literal comma is used to separate parameters to an identifier, use $chr(44) to represent the comma so that mIRC doesn't interpret it as part of the code. And since you only want to remove it rather then replace it, use $remove().

Code:
$remove($11, $chr(44))


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Aug 2005
Posts: 31
C
Caveman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2005
Posts: 31
Originally Posted By: starbucks_mafia
A literal comma is used to separate parameters to an identifier, use $chr(44) to represent the comma so that mIRC doesn't interpret it as part of the code. And since you only want to remove it rather then replace it, use $remove().

Code:
$remove($11, $chr(44))


Cool thanks bud.

Edit, Is there a way to list what chr is what?

Last edited by Caveman; 29/04/08 06:01 PM.
Caveman #198501 29/04/08 06:04 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Here's a good ASCII table.

http://www.mirc.net/ascii.php

RoCk #198502 29/04/08 06:21 PM
Joined: Aug 2005
Posts: 31
C
Caveman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2005
Posts: 31
Originally Posted By: RoCk

Here's a good ASCII table.

http://www.mirc.net/ascii.php


Thanks laugh very helpful


Link Copied to Clipboard