mIRC Home    About    Download    Register    News    Help

Print Thread
Script to have a , between usernames. #191996 20/12/07 05:21 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
I got n26=Whatever!:/me whatever $$1- whatever
To work. But I can't get a , between each name. How do I get it?

Last edited by FireDivine; 20/12/07 05:24 AM.
Re: Script to have a , between usernames. [Re: FireDivine] #191997 20/12/07 05:25 AM
Joined: May 2007
Posts: 89
T
TropNul Offline
Babel fish
Offline
Babel fish
T
Joined: May 2007
Posts: 89
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


tropnul
Re: Script to have a , between usernames. [Re: TropNul] #191998 20/12/07 05:27 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
It's a pop-up thing. Like slap trout. But multi, and with ,'s.

Re: Script to have a , between usernames. [Re: FireDivine] #191999 20/12/07 05:31 AM
Joined: May 2007
Posts: 89
T
TropNul Offline
Babel fish
Offline
Babel fish
T
Joined: May 2007
Posts: 89
Atleast show us the code ... sleep and describe the problem accordingly. We can't guess exactly what it's all about. *cough*


tropnul
Re: Script to have a , between usernames. [Re: FireDivine] #192000 20/12/07 05:35 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
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

Re: Script to have a , between usernames. [Re: FireDivine] #192001 20/12/07 07:15 AM
Joined: May 2007
Posts: 89
T
TropNul Offline
Babel fish
Offline
Babel fish
T
Joined: May 2007
Posts: 89
/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


tropnul
Re: Script to have a , between usernames. [Re: FireDivine] #192025 20/12/07 10:04 PM
Joined: Apr 2006
Posts: 464
O
OrionsBelt Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
This should do what you want.

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


Re: Script to have a , between usernames. [Re: OrionsBelt] #192031 21/12/07 05:00 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Thanks OrionsBelt! That got it to work perfectly.