mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2004
Posts: 2
I
Izlude Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jul 2004
Posts: 2
Hiya. I'm here because I've been searching all over the help file looking for a command that tells you the Nth word in a text.... example:
"We are zombies" = text
$unknown-command(We are zombies,1) returns "We"
and so on.... do you know if it exists or not?

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
$gettok(We are Zombies,1,32)

Where, 1 is the Nth term.

And, 32 is the ascii for a 'space'.

Also for a list of the characters/ascii if your unsure:

//var %i = 255 | while (%i) { echo -a -> %i => $chr(%i) | dec %i }

Eamonn.

Joined: Jul 2004
Posts: 2
I
Izlude Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jul 2004
Posts: 2
lol.... I've been looking for that command for two weeks now... never realized it was $gettok ... anyways ... thanks alot coolkill i owe you one grin

Joined: Dec 2002
Posts: 44
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Dec 2002
Posts: 44
it would be useful if you'd take a look at the mIRC help wink


sorry for my bad english
watch out when you're in front of my scalar howitzer smile

Punks not dead!

Link Copied to Clipboard