This is probably a silly issue -- with some inverted lines of code, or a forgotten "import" or something.
I have a script (it's not the global script).
In the header:
Code: ags
In the body:
Code: ags
Then, when I compile :
Error: '.AddItem_Safe' is not a public member of 'ListBox'
(this error is rasied on the line with lstBox.AddItem_Safe(buffer);
I don't get it. What am I missing?
I have a script (it's not the global script).
In the header:
import void AddItem_Safe(ListBox* this, String item);
In the body:
void AddItem_Safe(ListBox* this, String item)
{
this.AddItem(item);
}
void WrapLine(ListBox* lstBox, String desc)
{
String buffer = "";
lstBox.AddItem_Safe(buffer);
}
Then, when I compile :
Error: '.AddItem_Safe' is not a public member of 'ListBox'
(this error is rasied on the line with lstBox.AddItem_Safe(buffer);
I don't get it. What am I missing?