[SOLVED]importing function from rooms to global

Started by ahadHaYam, Thu 23/09/2004 12:27:21

Previous topic - Next topic

ahadHaYam

Hello.

Please can you explain how to import a function from a room script to global script(optionaly unsing the header).
I have read the manual and there is no explaination for this.

Thank you.

Khris

There's no explanation because it is not possible (I think).
If you want a function to be accessible in the global and room script, why don't you just move over the code to the global script and import it in the room script?

SSH

#2
krismuc is right: the only method of using a generic room function in a global script is called "cut-and-paste". However, the CallRoomScript function cna be used to call a spepcificly named function in a room script. See the manual entry for that function for full details.
12

ahadHaYam

Solved using CallRoomScript function,
thank you.

SMF spam blocked by CleanTalk