Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - shedcore

#1
Hello,

I am trying to build a GUI that holds a variables in a Listbox, ideally looking something like this:

Milk            4   pints   
Chocolate Milk  0   pints
Orange          2   pints
Jersey Milk     1   pints

These variables would change depending on whether the player takes the items or not.

I have tried to build the list using Additem as follows:

Code: ags


Listbox1.Additem ("Milk      %d   pints", Milkamount);


I am being told that "wrong number of parameters in call to Listbox1.Additem" and have no idea what this means!

I have read the manual attached to the software, read all the tutorials I can find and watched all of Densming's excellent videos on youtube, but I cannot seem to find a way around this problem.  I can see on the forums that people have asked a similar question and seem to have solved their own problems, but frankly I don't understand the solutions they have been given and I felt it would make more sense to explain my specific problem.

Any help would be greatly appreciated - I am something of a novice at scripting, but think I can grasp most things that make sense!
SMF spam blocked by CleanTalk