Squall Posted January 24, 2007 Share Posted January 24, 2007 plz only reply in this if you know wat u r doing on *:DIALOG:Joker:init:*:Joker.update alias Joker.update { !did -r Joker 12 !did -a Joker 12 ======Comments====== !did -a Joker 12 var %a = 1 while (%a <= $ini(JKE\Comments.ini,Comments,0)) { !did -a Joker 12 $readini($scriptdir $+ JKE\Comments.ini,Comments,$ini(JKE\Comments.ini,Comments,%a)) !inc %a } } Joker 12 is a list and only ======Comments====== shows up can any one help me Link to comment
Aeron Posted January 24, 2007 Share Posted January 24, 2007 on *:DIALOG:Joker:init:*: Joker.update alias Joker.update { !did -r Joker 12 !did -a Joker 12 ======Comments====== $+ $crlf !did -a Joker 12 var %a = 1 while (%a <= $ini($scriptdir $+ JKE\Comments.ini,Comments,0)) { !did -a Joker 12 $readini($scriptdir $+ JKE\Comments.ini,Comments,$ini($scriptdir $+ JKE\Comments.ini,Comments,%a)) $+ $crlf !inc %a } } '!did -a' appends to the text currently in the textbox, if you want it on a new line you have to add a new line urself. $crlf does that. But do you have the parameters 'multi' and 'wrap' behind the textbox to make it a multiline textbox and wraps around? Check helpfile for more info: /help Dialogs Link to comment
Squall Posted January 24, 2007 Author Share Posted January 24, 2007 can $+ $crlf be used in writeini to make it add omer than one line with only one writeini? also well i have an idea but i thought i ask you aeron i was thinking to put this script into mta with the server connect thing idk how to make it Link to comment
Aeron Posted January 25, 2007 Share Posted January 25, 2007 can $+ $crlf be used in writeini to make it add omer than one line with only one writeini? also well i have an idea but i thought i ask you aeron i was thinking to put this script into mta with the server connect thing idk how to make it You can't use it in writeini but you can replace it with an wrapper: $replace(text,$crlf,@crlf,$lf,@lf) $replace(text,@crlf,$crlf,@lf,$lf) Comment Zomg multi line Will look like: [topic] item=Zomg@crlfmulti@crlfline with !writeini file topic item $replace(text,$crlf,@crlf,$lf,@lf) To extract is t again use code: !did -a dialog item $replace($readini(file,topic,item),@crlf,$crlf,@lf,$lf) and it looks like: Zomg multi line You may edit mta.mrc, but a next update *cough* can ruin your code. Link to comment
Squall Posted January 25, 2007 Author Share Posted January 25, 2007 yeah i tried but i could not get the con con2 and con3 to work neither with dis Link to comment
Squall Posted January 25, 2007 Author Share Posted January 25, 2007 will u help me with a complexish (well not 4 u) thingi i am trying to make a guitar simulator where i record every fret on every string on either acustic or eletric and where they put the scroll on either 1 up to 22 will play a certain fret on a certain string i have only just started so yeah if you are interested say yes if not you can say no atm i am making the dailog and i got some 1 else but he only know how to play sound and stuff but with your help like pointers and stuff nothing major we will be appreciate lol i know this is not mta related but i only know you from here Link to comment
Recommended Posts