mIRC Home    About    Download    Register    News    Help

Print Thread
#107385 09/01/05 07:42 PM
Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
I am just wondering if there is a way to use /did with a $read identifier without it evuating whatever was returned by the $read command

#107386 09/01/05 07:46 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Use the n flag in read, eg:

Code:
did -a <dname> <id> $read(<file>, [color:red]n[/color])


New username: hixxy
#107387 09/01/05 07:49 PM
Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
I tried that, and it don't work smirk ....im usin custom identifiers in the file im reading from and what i wanna do is put the raw text into an edit box so that the user can edit it

#107388 09/01/05 07:54 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Paste the code you're using so we can see what's wrong, because the n flag should work fine.


New username: hixxy
#107389 09/01/05 07:56 PM
Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
on *:dialog:AdInfo:init:*: {
did -a AdInfo 2 $read(mp3playercinfo.txt,1)
}

#107390 09/01/05 07:58 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
did -a AdInfo 2 $read(mp3playercinfo.txt,n,1)

#107391 09/01/05 07:59 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You didn't use n like I said:

Code:
on *:dialog:AdInfo:init:*: { did -a AdInfo 2 $read(mp3playercinfo.txt,[color:red]n,[/color]1) }


New username: hixxy
#107392 09/01/05 08:00 PM
Joined: Oct 2004
Posts: 20
W
Wompie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Oct 2004
Posts: 20
ohhhhhhh.....i thought n represented the number...dur is me lol

#107393 09/01/05 08:20 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
In my posts:

<info> represents something I added to the code. (Eg: n)
<n> refers to a number. smile


New username: hixxy

Link Copied to Clipboard