Importing custom functions into global header (solved)

Started by Jono, Thu 13/11/2008 14:12:22

Previous topic - Next topic

Jono

I have two functions called AddReminder and LoseReminder. I want to use them in room scripts as well as the global script. I have exported them at the end of the global script, and imported them into the global header. However, when I try to use LoseReminder in the middle of a function in my room script, it comes back with a parse error.

I've used it within the function hDoor_Interact() as follows:

Code: ags


LoseReminder("Phone Mum.");


Khris

You don't need to export functions.

Code: ags
// header

import function AddReminder(String text);
import function LoseReminder(String text);


Why do people always open another thread about their same problem...?


SMF spam blocked by CleanTalk