mIRC Home    About    Download    Register    News    Help

Print Thread
#130902 23/09/05 01:34 PM
Joined: Sep 2005
Posts: 44
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2005
Posts: 44
Do all Variables have to begin with a " % " ?

#130903 23/09/05 01:44 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes.

Though, you could do something similar to variables by using other methods, such as hash tables that don't need a %.


Invision Support
#Invision on irc.irchighway.net
#130904 23/09/05 02:00 PM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
The % prefix is how mirc detemines if it is a variable or not. If there is no % prefix (or & for binvar) mirc will think it is not a variable and will not try to retrieve the data from the variables list.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#130905 23/09/05 02:15 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Oh, I forgot about binvars using &. I never use binvars, so didn't think of it. Oops. blush


Invision Support
#Invision on irc.irchighway.net
#130906 23/09/05 02:28 PM
Joined: Sep 2005
Posts: 44
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2005
Posts: 44
ok thanks, i thought they did.
i have no idea what hash tables are used for so ill lookinto that later on. well in a script ive got theres a thing called $slice and its not in the help file so i dont know what it means, do any of you?

#130907 23/09/05 02:50 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It's a custom identifier that is scripted somewhere in the script.


Invision Support
#Invision on irc.irchighway.net
#130908 23/09/05 04:57 PM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Look for an alias called slice, it will be either in the remote scripts titled 'alias slice' or 'alias -l slice' or it will be in the aliases just called 'slice'

example of a custom identifier

alias testing { return testing testing 1. $1 2. $1 3. $1 }
on *:text:!test *:#: { say $testing($2) }

<somenick> !test yo
<yournick> testing testing 1. yo 2. yo 3. yo


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard