mIRC Home    About    Download    Register    News    Help

Print Thread
#213113 18/06/09 03:34 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I have into my settings.ini an info and i want it to put it into a combo box in my dialog have a look:

Code:
on *:DIALOG:test:init:*: {
    var %z = 1
    var %p = $readini(settings.ini,OTHERS,ALL_LANG)
    while (%z <= $numtok(%p,44)) {
      did -ca $dname 85 $gettok(%p,%z,44)
      inc %z
    }
    inc %z
}

settings.ini - file

[OTHERS]
ALL_LANG=Greek,English


i Made this code but when i open my dialog the results are OK , BUT an space is added into the combo box , what i did wrong?

Last edited by westor; 18/06/09 03:35 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #213114 18/06/09 03:36 PM
Joined: Jul 2006
Posts: 4,191
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,191
A space ? Can you be more precise ? Also, look at /help /didtok, you don't need this while loop


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #213116 18/06/09 03:45 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Problem resolved. ok thanks


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard