I knew how to access function parameters using said defined names. I think I took what you said the wrong way, but thanks for your clarifications. One more question though;
What should I expect this to output?
This? [foo] FOOED [temp.foo] foostring [bar] BARRED [temp.bar] barstring
|| This? [foo] foostring [temp.foo] foostring [bar] barstring [temp.bar] barstring
PHP Code:
function onFooMyBar(foo,bar) {
temp.foo = "foostring";
temp.bar = "barstring";
player.chat = "[foo]" SPC foo SPC "[temp.foo]" SPC temp.foo SPC "[bar]" SPC bar SPC "[temp.bar]" SPC temp.bar;
}
function onCreated() {
onFooMyBar("FOOED","BARRED");
}
EDIT to Switch: I know how to access functions and use tokenize; I'm just curious as to how temp. works. I'm glad you told me it's scope is the function it's used in.
EDIT to s^11: Sorry to jack your thread