mIRC Home    About    Download    Register    News    Help

Print Thread
Have you seen this command...? #91098 20/07/04 08:17 AM
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?

Re: Have you seen this command...? #91099 20/07/04 08:24 AM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
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.

Re: Have you seen this command...? #91100 20/07/04 01:28 PM
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

Re: Have you seen this command...? #91101 24/07/04 09:26 AM
Joined: Dec 2002
Posts: 44
G
GodGell Offline
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!