Can I use a GUI in a function argument?

Started by EnterTheStory (aka tolworthy), Thu 20/05/2010 16:36:50

Previous topic - Next topic

EnterTheStory (aka tolworthy)

I have a function for fading out GUIs, but what's the right terminology?  E.g.
Code: ags

function fadeGUI (int whatGUI){}//?
function fadeGUI (GUI* whatGUI){}//?
function fadeGUI (gui *whatGUI){}//?
function fadeGUI (what doIputHere){}//?

Sorry if this is a trivial question, but I can't find the syntax in the manual or the forums.

Khris

The syntax is the same as when you're declaring a variable, i.e. the second one is correct.

EnterTheStory (aka tolworthy)


SMF spam blocked by CleanTalk