What's wrong with this code?
#10

The most characters you need is 301 (on the first string, (str1) 1024 on ALL these lines are way too much,
since EACH of them does NOT use 1024 cells, the longest one uses 301. So change the FIRST one to 301, the rest to around 200, since the second longest one is 200 cells.

Also you are trying to make a selection list, yet you are using DIALOG_STYLE_MSGBOX, and since you are making a new line on EVERY car model it will not work, as the dialog box cannot hold that many lines.

To make a list use DIALOG_STYLE_LIST, although it WILL NOT WORK still, as you are making it all combined.
I think ONE dialog list box can only hold 10 or 12 choices, for the rest you have to create new dialog lists.

Read the wiki, about dialog boxes and strings.
Reply


Messages In This Thread
What's wrong with this code? - by Lilcuete - 10.06.2011, 17:31
Re: What's wrong with this code? - by Michael@Belgium - 10.06.2011, 17:33
AW: Re: What's wrong with this code? - by Lilcuete - 10.06.2011, 17:35
Re: What's wrong with this code? - by sleepysnowflake - 10.06.2011, 17:46
AW: What's wrong with this code? - by Lilcuete - 10.06.2011, 17:52
Re: What's wrong with this code? - by Sascha - 10.06.2011, 18:00
AW: What's wrong with this code? - by Lilcuete - 10.06.2011, 18:02
Re: What's wrong with this code? - by Sascha - 10.06.2011, 18:04
AW: What's wrong with this code? - by Lilcuete - 10.06.2011, 18:30
Re: What's wrong with this code? - by Mike Garber - 10.06.2011, 18:34

Forum Jump:


Users browsing this thread: 2 Guest(s)