mIRC Home    About    Download    Register    News    Help

Print Thread
#207709 28/12/08 11:43 PM
Joined: Oct 2005
Posts: 54
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
on 1:text:*madd*:*: {
if ($1 == %qc $+ madd) {
if ($2 == $null) { .msg $nick 4Incorrect command usage: .madd <message> | closemsg

$nick | halt }
else { .writeini inimb.ini %mbnum msg ( $+ $adate $+ ) 4 $+ $nick $+ : $2- |

.inc %mbnum 1 | .msg $nick Your message has been saved. Please type .mview to view all

messages. | closemsg $nick }
}
else { halt }
}
this script works i just need help adding some stuff. i want to add a time stamp. i want be able to delete the message by message number. i want to be able to see what id number the message is maybe by showing the message number by the message. do you think this is possible if so please help me.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Your timestamp is already there, using $adate.

If you want something more specific, change $adate to $ctime and include the format that you want used.

Eg: $ctime($ctime,ddd mmm dd yyyy @ h:nn:ss tt)

See /help $ctime for details regarding the format used in my example and other formatting options.

To remove the message by message number, presuming that %mbnum is the message number, use /remini inimb.ini <message #>

See /help /remini

The easiest way to see the message number, is to include it as part of the message that is saved.

RusselB #207732 29/12/08 03:56 PM
Joined: Oct 2005
Posts: 54
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
i cant get it to work


Link Copied to Clipboard