mIRC Home    About    Download    Register    News    Help

Print Thread
N
namnori
namnori
N
Is anyone else spend a lot of time adding [ $+ [ $cid ] ] to variable names to make things work properly across multiple connections?
Maybe there should be a different prefix, instead of '%', to limit a variable's scope to the $cid in which it was called.

D
DarkStarX
DarkStarX
D
What's tyhe difference if the variable prefix was '%' or somethign else? I don't see the point of your suggestion =\

Plus, if you changed the prefix of a variable, do you have any idea how many scripts that would break lol

Regards,

G
GrimZ
GrimZ
G
I'd just prefer a different method of making global variables (ie, specifiying them to be), otherwise they'd all defautly assume the local scope.


A
arps
arps
A
So just make your own set alias, thats the purpose of scripting.
alias mset set $+($1,.,$cid) $2-
/mset %huh wut
%huh.1 wut


Link Copied to Clipboard