mIRC Home    About    Download    Register    News    Help

Print Thread
I
Izlude
Izlude
I
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: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787
$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.

I
Izlude
Izlude
I
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

G
GodGell
GodGell
G
it would be useful if you'd take a look at the mIRC help wink


Link Copied to Clipboard