Jump to content

variables and listboxes


Rhys

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...