Rhys Posted December 4, 2004 Report Share Posted December 4, 2004 how can i add a variable like below to a list box, but have 1 name per line and remove the comma? %mirc.adminsonline you, err0r, ozzy, someone, add that into a list box, so it would look like this you err0r ozzy someone Link to comment Share on other sites More sharing options...
The Gate Keeper Posted December 4, 2004 Report Share Posted December 4, 2004 put this in your init of dialog didtok $dname <id> 44 %mirc.adminsonline Link to comment Share on other sites More sharing options...
Cleric xtx Posted December 5, 2004 Report Share Posted December 5, 2004 You'd have to take out the spaces too, btw. If you do it as you have there it'll come out with a space before their name. I'm 90% sure that's what happens anyway... Link to comment Share on other sites More sharing options...
Ozzy10 Posted December 5, 2004 Report Share Posted December 5, 2004 on *:DIALOG:dialogname:init:0: { var %o = 1 while (%o <= $numtok(%mirc.adminsonline,44)) { did -a dialogname id $gettok(%mirc.adminsonline,%o,44) inc %o } } make sure you change the following dialog name to the name of your dialog id to the id of the box you want to put the var into the above code will place them under each other eg %mirc.adminsonline you,err0r,ozzy,someone would show in box as you err0r ozzy someone Link to comment Share on other sites More sharing options...
tidy trax Posted December 5, 2004 Report Share Posted December 5, 2004 Either use what thegatekeeper said or: tokenize 44 %mirc.adminsonline did -a dname id $* Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now