mIRC Homepage
Posted By: FireDivine Script to have a , between usernames. - 20/12/07 05:21 AM
I got n26=Whatever!:/me whatever $$1- whatever
To work. But I can't get a , between each name. How do I get it?
Posted By: TropNul Re: Script to have a , between usernames. - 20/12/07 05:25 AM
What names ? Can you please be more explicit about the problem ?

By the way, to include "," somewhere, use $chr(44) to do so as 44 is the ascii code of ",".

Example:
Code:
var %a = testingcommasinsomething

; the following won't work
var %a = $+(testing,,,commas,,,in,,,something)

; the following shall function
var %a = $+(testing,$chr(44),commas,$chr(44),in,$chr(44),something)


Cordialement
Posted By: FireDivine Re: Script to have a , between usernames. - 20/12/07 05:27 AM
It's a pop-up thing. Like slap trout. But multi, and with ,'s.
Posted By: TropNul Re: Script to have a , between usernames. - 20/12/07 05:31 AM
Atleast show us the code ... sleep and describe the problem accordingly. We can't guess exactly what it's all about. *cough*
Posted By: FireDivine Re: Script to have a , between usernames. - 20/12/07 05:35 AM
Code:
n26=Whatever!:/me whatever $$1- whatever


^

Which when right clicked on will result in.

Quote:
~Me whatever user1 user2 user3 user4 whatever


I would like to have.

Quote:
~Me whatever user1, user2, user3, user4 whatever
Posted By: TropNul Re: Script to have a , between usernames. - 20/12/07 07:15 AM
/help $snicks

and wow, it says

Originally Posted By: "mIRC help file"
$snicks

Returns a string of the currently selected nicknames in the active channel listbox in the form:

nick1,nick2,nick3,...,nickN


wink
Posted By: OrionsBelt Re: Script to have a , between usernames. - 20/12/07 10:04 PM
This should do what you want.

Code:
n26=Whatever!:/me whatever $replace($snicks,$chr(44),$chr(44) $+ $chr(32)) whatever

Posted By: FireDivine Re: Script to have a , between usernames. - 21/12/07 05:00 AM
Thanks OrionsBelt! That got it to work perfectly.
© mIRC Discussion Forums